agentleFS
MKS-01MKS-01/appscreenmap/.claude/skills/security-audit/SKILL.md

security-audit

Skill2 starsChanged 17 days agoMITView on GitHub

Run a security audit of an Android or iOS build with AppScreenMap — `appscreenmap security <run>` scans an APK (manifest, risky API use in the code, hard-coded secrets) or an iOS .app/.ipa with --app (Info.plist, privacy manifest, secrets), the app's data folder and a Frida observation log and writes audits/security.json; judge the findings against the security rules, do the checks it doesn't cover by hand, and report. Use when asked to security-check, scan or review an app build, to fill the Security audit, or to check a release before shipping. Only for apps you own or are authorised to test.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, story-done and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +7 more from lilangMax
  • +1 more from nicepkg

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 173 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Put what you skipped in summary and metrics, never leave it out.

    line 98
  2. Distinctive:

    Never include a secret's value.

    line 104
  3. Very specific:

    Add a check by returning {"rule": <id>, "key": ..., "detail": ...} from a collector, add a fixture test, and flip the rule's status to …

    line 109
  4. Very specific:

    Use extend-crawler for CLI wiring.

    line 111

“Common” is measured: kept by at least 6 in 10 of the 173 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security audit

Authorised use only. Run this on builds you own or have written permission to test. It reads the app's own manifest, code and data folder, and instruments it on your device or simulator. It doesn't attack servers and nothing here is for evading detection or exploiting anyone else's app. Don't paste secrets you find into chat, tickets or the report: record where, not the value.

Status: appscreenmap security <run> covers Android (manifest rules, risky API references in the dex, hard-coded secrets in the APK, secrets left in the app's data folder, an observation-only Frida log) and iOS with --app (Info.plist App Transport Security, privacy manifest, secrets in the bundle). It writes audits/security.json itself, so the Insights Security page shows real findings. What it does not check (sensitive-logging, custom trust managers, the iOS data container) is still done by hand below, and a rule stays planned in the catalogue until the command covers it. Rules, severities and fixes live in security-rules.

1. Preflight

uv run appscreenmap-engine doctor            # aapt2 reads the manifest; adb for the device checks
uv tool install frida-tools           # only for the dynamic check

Pick the release build you ship. A debug build will (rightly) trip debuggable and cleartext-traffic.

2. Run the scanner (Android)

RUN=runs/<project>/<run-id>                                   # a crawl of the app (crawl-app)
uv run appscreenmap-engine security $RUN --apk app-release.apk       # manifest + hard-coded secrets, about 0.1 s
uv run appscreenmap-engine security $RUN --pull --device             # or: pull the installed APK, and read the app's data folder
uv run appscreenmap-engine security $RUN --frida-log frida.log       # add the dynamic observations (below)

Each call adds its evidence to the run (audits/security-evidence.json) and rebuilds audits/security.json from everything collected so far, so you can run the three steps in any order. Add --json to read the audit instead of the summary.

FlagEvidenceRules
--apk FILE / --pullManifest (aapt2), network security config, secret formats in dex, resources and assetsexported-component, cleartext-traffic, debuggable, allow-backup, hardcoded-secret
--devicePlain-text secrets in shared_prefs/ and files/; needs a debuggable build (run-as) or a rooted emulator (su), else it says it didn't runsecrets-at-rest
--frida-log FILEJSON lines from the Frida hook (appscreenmap security --frida-script prints its path)cleartext-observed, no-cert-pinning

The secret scan only matches high-confidence formats (AWS, Stripe live, Slack, GitHub, private keys, database URLs with credentials, Google API keys) and records where and a short fingerprint, never the value. A Google API key is reported as info: client keys ship in apps on purpose, so the fix is to restrict it.

Dynamic (Frida). On your own debug build, with a frida server on the emulator:

frida -U -f <package> -l "$(uv run appscreenmap-engine security --frida-script)" > frida.log   # then use or crawl the app

The script only observes: it logs plain http:// hosts and whether OkHttp has any certificate pin configured. It doesn't bypass pinning or change traffic. It was written without a device to test on, so check that its hooks attach (a hook-failed line, or a "Frida hook … did not attach" note in the audit) before trusting an empty result.

By hand: what the scanner doesn't cover

The scanner matches strings in the dex files, so its code findings are candidates. It does not read the code: a custom X509TrustManager, a Log.* call with a token, or a call that passes false need a human (or jadx) look.

EvidenceAndroidiOS (simulator .app)Rules
Data left behindxcrun simctl get_app_container <udid> <bundle> data, then plutil -p the preferencessecrets-at-rest
Codejadx -d out app.apk, then grep out/sources (custom trust managers, the value a candidate passes)strings on the binary, grep the bundleinsecure-trust-manager, sensitive-logging, and every dex candidate

Detection hints for every rule are in security-rules/reference/rules.md. Say which categories you did not run: an audit that skipped a category must not read as a pass (the command never returns pass while rules remain unchecked).

3. Judge

Apply security-rules ("Reading a finding"). For each candidate: open the code or file, confirm it's real, then keep it, downgrade it (say why) or drop it. Match it to a rule id; one rule can produce several findings.

4. Write the result by hand (only for what the scanner doesn't cover)

The command writes this for you. For hand-run checks, add findings to runs/<project>/<run-id>/audits/security.json (shape in docs/MAP_SCHEMA.md, "audits"). The viewer picks it up and replaces the placeholder. Use the rule's own text:

{ "schema": 1, "audit": "security", "title": "Security", "tool": "jadx 1.5.1 + aapt2 (by hand)",
  "generated_at": "2026-10-14T12:00:00+00:00", "source": "run", "status": "fail", "score": 70,
  "score_note": "100 minus 20 per error, 8 per warning, 2 per info",
  "summary": "1 error, 2 warnings · manifest and static scan run; dynamic not run",
  "metrics": [ { "label": "checks run", "value": "manifest, static" }, { "label": "not run", "value": "dynamic", "tone": "warn" } ],
  "charts": [],
  "findings": [ {
      "id": "debuggable", "severity": "error", "category": "Manifest", "platform": "android",
      "title": "Debuggable build", "detail": "android:debuggable=\"true\" in AndroidManifest.xml.",
      "fix": "<the rule's fix>", "refs": [ { "title": "android:debuggable", "url": "https://developer.android.com/…", "publisher": "Android Developers" } ] } ],
  "refs": [] }
  • id is the rule id (add a suffix for several findings of one rule: exported-component:com.x.Settings).
  • Score is yours to define; state it in score_note. Don't invent a score you can't explain.
  • Put what you skipped in summary and metrics, never leave it out.

5. Report back

Lead with the errors and what each exposes (not how to exploit it). Then warnings, then what was not checked. Link the Insights page (#/r/<run>/insights/security). Offer fixes as code, and re-run the same checks after the fix to confirm. Never include a secret's value.

Extending the scanner

packages/security/ (stdlib only: manifest.py, code.py (dex string matches), secrets.py, apk.py, ios.py, device_data.py, frida.py, audit.py; tests in packages/security/tests/ use real aapt2 output saved in packages/security/tests/fixtures/). Add a check by returning {"rule": <id>, "key": ..., "detail": ...} from a collector, add a fixture test, and flip the rule's status to ready in rules.json. Next in line: sensitive-logging, custom X509TrustManager detection (needs bytecode reading, not string matching), and the iOS data container. Use extend-crawler for CLI wiring.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.