agentleFS
botdigit-officialbotdigit-official/agent-blueprint/skills/07-security/SKILL.md

07-security

Skill1 starsChanged 53 days agoMITView on GitHub

Version: 1.0.0 Compatible: project_skills >= 1.0 Requires: discovery, project-context, business-architecture Outputs: security.md, security-findings.md Review the project's security posture. Security and data integrity come before features. This skill is mandatory for projects that handle user data, payments, authentication, PII, or external integrations. It is optional for static sites and tools that do not handle sensitive data. Business logic vulnerabilities are not caught by generic scanners. Examine: - Can pricing be manipulated? - Can workflows be bypassed? - Can state transitions be…

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If infrastructure is detectable:

    line 99
  2. Distinctive:

    Never hardcode secrets. Ever.

    line 154
  3. Distinctive:

    Never trust client-side validation alone.

    line 155
  4. Distinctive:

    Never skip authorization checks on any endpoint that touches sensitive data.

    line 156
  5. Distinctive:

    Never store passwords in plaintext.

    line 157
  6. Distinctive:

    Never expose internal errors to users.

    line 158
  7. Distinctive:

    Never ignore known vulnerabilities in dependencies.

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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

07-Security Skill

Version: 1.0.0 Compatible: project_skills >= 1.0 Requires: discovery, project-context, business-architecture Outputs: security.md, security-findings.md


Purpose

Review the project's security posture. Security and data integrity come before features.

This skill is mandatory for projects that handle user data, payments, authentication, PII, or external integrations. It is optional for static sites and tools that do not handle sensitive data.


Process

1. Identify the attack surface

  • What endpoints or interfaces accept input?
  • What data is collected, stored, or transmitted?
  • What authentication and authorization exist?
  • What third-party services are integrated?
  • What data crosses trust boundaries?
  • What is exposed to the internet?
  • What is internal-only?

2. Review authentication

  • How do users authenticate?
  • Are credentials stored securely?
  • Are sessions managed correctly?
  • Is MFA available where it should be?
  • Are password policies reasonable?
  • Are there default or backdoor accounts?
  • Is there an admin authentication path? Is it appropriately protected?

3. Review authorization

  • Can users access data they do not own?
  • Can users perform actions they should not?
  • Are authorization checks on every endpoint, or only some?
  • Is there privilege escalation risk?
  • Are roles and permissions clearly defined?
  • Can permissions be bypassed by changing parameters, IDs, or paths?

4. Review input handling

  • Is all input validated?
  • Is validation on the client sufficient? (it is not)
  • Are SQL queries parameterized?
  • Are queries using an ORM correctly (no raw SQL where avoidable)?
  • Is output encoded for its context (HTML, JSON, SQL, shell)?
  • Are file uploads handled safely?
  • Are file types validated server-side?
  • Are file sizes limited?

5. Review data protection

  • Is sensitive data encrypted at rest?
  • Is data encrypted in transit?
  • Are secrets in code, config files, or env vars? (all are problems; env vars are the least bad)
  • Are API keys and tokens exposed in client-side code?
  • Is PII handled according to the project's obligations?
  • Is data retention defined and implemented?
  • Can data be deleted when required?

6. Review dependencies

  • Are dependencies up to date?
  • Are there known vulnerabilities in dependencies?
  • Are unused dependencies removed?
  • Are dependencies from trusted sources?
  • Are lockfiles committed?

7. Review logging and monitoring

  • Are security events logged?
  • Are logs free of sensitive data?
  • Is there alerting for suspicious activity?
  • Can you detect a breach?

8. Review business logic security

Business logic vulnerabilities are not caught by generic scanners. Examine:

  • Can pricing be manipulated?
  • Can workflows be bypassed?
  • Can state transitions be forced out of order?
  • Can users affect data they should not?
  • Are there race conditions in critical operations?
  • Can features be accessed before they should be?
  • Can free users access paid features?
  • Can admin features be accessed by non-admins?

9. Review infrastructure security

If infrastructure is detectable:

  • Are containers run as root?
  • Are secrets in environment variables or mounted files?
  • Are security groups / firewalls appropriate?
  • Is TLS configured?
  • Are backups encrypted?
  • Are there unnecessary exposed ports or services?

Severity Levels

SeverityMeaningResponse
CriticalActive exploit possible; data breach or system compromise likelyFix immediately; block release if unfixed
HighSignificant risk; exploitation likely with some effortFix before next release; prioritize
MediumNotable risk; exploitation possible but constrainedFix in current or next sprint
LowMinor issue; hard to exploit or low impactTrack and fix when convenient
InformationalWorth noting; not a vulnerabilityDocument

Output

security.md

Security
========
Attack surface: [description]
Authentication: [mechanism, assessment]
Authorization: [mechanism, assessment]
Data protection: [assessment]
Dependencies: [assessment]
Logging: [assessment]
Infrastructure: [assessment if detectable]
Business logic security: [assessment]

security-findings.md

Security Findings
=================
[Finding ID]: [description]
Severity: [critical | high | medium | low | informational]
Location: [where found]
Impact: [what can happen]
Recommendation: [what to do]

Critical Rules

  • Never hardcode secrets. Ever.
  • Never trust client-side validation alone.
  • Never skip authorization checks on any endpoint that touches sensitive data.
  • Never store passwords in plaintext.
  • Never expose internal errors to users.
  • Never ignore known vulnerabilities in dependencies.

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.

Reviews can't be read right now.

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.