security-hardener

Audits Android apps against OWASP MASVS categories and produces risk-ranked remediation reports.

Updated Jan 2, 2024
One-click install
npx skills add https://github.com/Mithrandir21/game-deals-app --skill security-hardener-mithrandir21
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: security-hardener
Source: https://github.com/Mithrandir21/game-deals-app/tree/main/.claude/skills/security-hardener
Command: npx skills add https://github.com/Mithrandir21/game-deals-app --skill security-hardener-mithrandir21

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Android apps often ship with exploitable weaknesses like exported components, cleartext traffic, unencrypted tokens, and misconfigured WebViews. This Skill provides a structured, MASVS-aligned audit process that turns an ad-hoc security review into a repeatable methodology with concrete fixes. ## Core Features & Use Cases - Attack Surface Inventory: Systematically greps for exported components, deep links, permissions, network config, storage locations, WebViews, native code, and crypto usage. - MASVS Category Walkthrough: Covers STORAGE, CRYPTO, AUTH, NETWORK, PLATFORM, CODE, and RESILIENCE with specific checks like EncryptedSharedPreferences, certificate pinning, BiometricPrompt configuration, and PendingIntent mutability. - Risk-Ranked Reporting: Produces a report grouped by MASVS category with a severity summary table and a recommended remediation order. - Use Case: Before a penetration test or Play Store review, run this audit on your app to find an exported activity leaking data and a deep link vulnerable to IDOR, then get the exact manifest and validation fixes. ## Quick Start Ask the assistant to run a MASVS security audit on this Android project and report findings by category and risk.

Frequently Asked Questions about security-hardener

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit an Android app for security vulnerabilities?▼

Start by inventorying the attack surface: exported components, deep links, permissions, network config, storage, WebViews, and crypto usage. Then walk the OWASP MASVS categories (storage, crypto, auth, network, platform, code, resilience) and document each finding with a risk rating and specific fix.

How to implement certificate pinning on Android?▼

Use the declarative <pin-set> in Network Security Config XML rather than OkHttp CertificatePinner for centralized management. Enforce TLS 1.2 minimum, set usesCleartextTraffic to false, and plan a pin rotation strategy before certificates expire.

What is the difference between MASVS and MASTG?▼

MASVS is the requirements standard defining what to verify across categories like storage, crypto, and network. MASTG is the testing guide describing how to test each requirement, and findings can reference MASTG test IDs for traceability.

Does Android Keystore protect auth tokens better than SharedPreferences?▼

Yes. Plain SharedPreferences store tokens unencrypted and readable on rooted devices. Use EncryptedSharedPreferences or DataStore backed by Android Keystore keys, optionally with setUserAuthenticationRequired for high-value secrets.

When should I not rely on root detection for app security?▼

Root detection via Play Integrity API is bypassable and should never be a primary control. Treat it as a defense-in-depth signal where you decide to block, warn, or log, rather than a wall that stops determined attackers.