agentleFS
adrigm06adrigm06/Android-Engineering-Skill/skills/android-security/SKILL.md

android-security

Skill3 starsChanged 7 months agoMITView on GitHub

Android security engineering skill for threat-aware recommendations on secrets handling, secure storage, network hardening, Play Integrity, and release safeguards. Use this whenever security posture or sensitive data handling is in scope.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    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. Distinctive:

    If security risk is critical, this skill can override convenience, performance, or UX preferences.

    line 18
  2. Distinctive:

    if ideal control is operationally heavy:

    line 49
  3. Distinctive:

    if threat model is weak/unknown:

    line 51
  4. Very specific:

    Use measurable risk gates and label each pass | at-risk | fail:

    line 56
  5. Distinctive:

    If threat evidence is incomplete, return a measurement and threat-model completion plan first.

    line 63
  6. Distinctive:

    Do not frame risk acceptance as risk elimination.

    line 72
  7. Distinctive:

    If confidence is medium/low:

    line 82
  8. Very specific:

    Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).

    line 91
  9. Very specific:

    Follow global order from ../../AGENTS.md:

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Purpose

Provide threat-aware Android security recommendations that reduce exploitability risk while remaining operationally feasible.

Scope and authority

This skill has global critical override authority for:

  • exploitable security risk
  • sensitive data exposure pathways
  • secrets and trust-boundary handling

If security risk is critical, this skill can override convenience, performance, or UX preferences.

When to use

  • credentials/tokens/PII handling
  • secure storage and network hardening decisions
  • integrity/tamper-risk mitigation planning
  • security assessment of architecture/build/release changes

Decision engine workflow

  1. Identify assets, trust boundaries, and attacker capabilities.
  2. Rank threats by exploitability and business impact.
  3. Choose mitigations by risk reduction vs operational cost.
  4. Define rollout controls and residual risk.
  5. Align with release constraints and incident readiness.

Branching decision tree

Branch A: risk class

  • Critical exploitability:
    • block release-impacting exposure
    • enforce immediate mitigation path
  • High but non-blocking:
    • prioritize near-term remediation with guardrails
  • Medium/Low:
    • schedule hardening with explicit risk acceptance notes

Branch B: mitigation feasibility

  • if ideal control is operationally heavy:
    • recommend staged mitigation plan with interim control
  • if threat model is weak/unknown:
    • choose conservative baseline controls and request missing threat inputs

Quantitative gates

Use measurable risk gates and label each pass | at-risk | fail:

  • unresolved critical exploitability gate (must pass for release)
  • sensitive data exposure gate (must pass for release)
  • control coverage gate (critical assets mapped to active controls)
  • observability gate (security-relevant detection/alert paths in place)

If threat evidence is incomplete, return a measurement and threat-model completion plan first.

Tradeoff realism

Allow constrained compromises only when explicit:

  • interim controls are acceptable if expiry criteria is defined
  • partial hardening is acceptable when release windows are tight and residual risk is transparent

Do not frame risk acceptance as risk elimination.

Uncertainty protocol

Always report confidence:

  • High (>= 0.80)
  • Medium (0.60-0.79)
  • Low (< 0.60)

If confidence is medium/low:

  • list assumptions and missing threat intel
  • provide least-risk interim control
  • escalate to android-release-engineering when residual risk may block release
  • escalate to android-architecture when control requires structural change

Cross-skill handoff payload

Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract). Set requesting_skill to android-security.

Output contract

Follow global order from ../../AGENTS.md:

  1. Context and constraints
  2. Decision and rationale
  3. Alternatives considered
  4. Tradeoffs
  5. Risks and mitigations
  6. Confidence and unknowns
  7. Cross-skill impacts
  8. Next implementation steps

Also include:

  • Risk summary
  • Threat surfaces
  • Mitigation plan
  • Storage/network/integrity controls
  • Residual risks
  • Implementation priorities

Anti-pattern detection

  • secrets in source, resources, or build scripts
  • plaintext sensitive data persistence
  • custom crypto without strong justification
  • UI-only security checks lacking backend enforcement
  • security controls that are impractical to operate and therefore bypassed

Related resources

  • references/mobile-threat-model.md

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.