agentleFS
zzgiabaozzbuizzgiabaozzbui/athena-starter/skills/security-testing/SKILL.md

security-testing

Skill1 starsChanged 29 days agoMITView on GitHub

Test authorization with a role × endpoint matrix (401, 403, IDOR) and audit dependencies for known vulnerabilities (pnpm, npm, NuGet). Use when adding or changing an endpoint, a permission, a data scope or a dependency; before a release; or when the user says "security test", "permission test", "IDOR", "audit dependencies".

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use mobile-testing, database-testing and 7 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.
  • petrkindlmannSkill

    mobile-testing

    Test native, React Native, hybrid, and Flutter mobile apps with Appium 3.x, Detox, Maestro, and Patrol. Covers device farm setup (BrowserStack, Sauce Labs), gesture simulation, deep link and cold-start testing, push notifications, biometric (Face ID) auth, offline/poor-network simulation, and iOS/Android permission dialog handling. Use when: "mobile test," "Appium," "Detox," "Maestro," "Patrol," "Flutter test," "iOS test," "Android test," "device farm," "deep link," "biometric," "Face ID," "permission dialog," "React Native test." Not for: device/browser matrix strategy in the abstract — use cross-browser-testing; app startup/memory/battery profiling depth — use performance-testing; mobile screenshot diffing — use visual-testing. Related: ci-cd-integration, cross-browser-testing, performance-testing, test-data-management, test-reliability.

    Also in 5 projects that use this

  • petrkindlmannSkill

    database-testing

    Validate database integrity, test migrations forward and backward, verify schema constraints, manage seed data, detect migration drift, and identify query performance issues. Covers PostgreSQL, MySQL, MongoDB with Prisma, TypeORM, Drizzle, and SQLAlchemy, plus Testcontainers test databases. Use when: "database test," "migration test," "migration rollback," "rollback test," "data integrity," "SQL test," "schema validation," "seed data," "query performance," "Testcontainers." Not for: synthetic data generation/masking at scale — use test-data-management; Docker/IaC test-environment provisioning — use test-environments; SQL injection — use security-testing. Related: test-data-management, test-environments, security-testing, ci-cd-integration.

    Also in 4 projects that use this

  • conorluddySkill

    accessibility-testing

    WCAG compliance testing and accessibility quality assurance workflows for iOS apps. Use when validating accessibility labels, testing VoiceOver compatibility, checking contrast ratios, or ensuring WCAG 2.1 compliance. Covers accessibility tree analysis, semantic validation, and automated accessibility testing patterns.

    Also in 5 projects that use this

  • kao273183Skill

    test-automation

    從測試用例(Google Sheet TC、JIRA ticket、功能描述)生成可執行的自動化測試腳本。支援雙平台原生框架(iOS: Swift Testing + XCUITest、Android: JUnit + Espresso + Mockk)。以 QA 測試工程師角度出發,將手動 TC 轉化為自動化腳本,包含 ROI 評估和 Page Object Model。當使用者提到「自動化測試」、「生成自動化腳本」、「把測試用例自動化」、「UI test 腳本」、「automation script」、「把 TC 轉成程式碼」,或提供 Google Sheet 測試用例要求生成自動化腳本,或討論哪些 TC 值得自動化時使用。

    Also in 3 projects that use this

  • nek1987Skill

    api-testing

    Use when writing tests for backend APIs or frontend flows. Triggers for: unit tests, integration tests, E2E tests, pytest fixtures, TestClient setup, mock data factories, or test coverage analysis. NOT for: testing business logic that doesn't involve API endpoints.

    Also in 5 projects that use this

  • testified-ossSkill

    exploratory-testing

    Guide exploratory testing sessions including charter creation, session-based testing, heuristics application, and finding documentation. Use when planning exploratory testing, conducting test sessions, or documenting discoveries.

    Also in 3 projects that use this

  • +3 more from petrkindlmann

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before writing tests, build a table (in the test plan, or in the e2e spec):

    line 14
  2. Distinctive:

    Run only on local or on an environment the user confirms may write and delete test data.

    line 25
  3. Distinctive:

    Do not use a superadmin to conclude anything about permissions.

    line 31
  4. Very specific:

    Use the project's own test framework (for example xUnit for .NET, or Playwright's request with a per-role storageState per e2e-playwright …

    line 32
  5. Distinctive:

    Test account credentials come from environment variables, never from code (R-016, R-017).

    line 34
  6. Distinctive:

    Run according to the lockfile in the repo:

    line 38
  7. Very specific:

    Do not run audit fix, --force or a major upgrade on your own.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 11 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
<!-- Cases A / B adapted from github.com/addyosmani/agent-skills · skills/security-and-hardening (MIT, © Addy Osmani); "missing data means no verdict" adapted from github.com/trailofbits/skills · plugins/supply-chain-risk-auditor (CC BY-SA 4.0, © Trail of Bits), rewritten. See LICENSE in this folder. -->

Security testing

Two jobs: authorization tests (§1, §2) and dependency audit (§3). Reading code for vulnerabilities belongs to the reviewer (code-reviewer); this skill writes tests and runs commands to produce evidence.

1 · Authorization matrix

Before writing tests, build a table (in the test plan, or in the e2e spec):

Endpoint · methodNo tokenRole without permissionPermitted role, own dataPermitted role, another person's / unit's data

Each cell holds the expected code: 401 · 403 · 200 · 403 or 404 per the project's convention (no convention yet → ask the user). Take the data from the project's permission map and data scope (unit, owner). A new endpoint or a changed permission → one test per cell.

2 · Writing the tests

  • Run only on local or on an environment the user confirms may write and delete test data; the test cleans up the records it creates.
  • One test account per role. Two accounts of the same role that belong to different units / owners give the IDOR case.
  • IDOR case: A creates a record; B reads, edits and deletes it by that id → the code in the last column; A reads it again and sees it unchanged.
  • Also try the indirect paths: lists, search, counts and exports do not leak records outside the scope.
  • Do not use a superadmin to conclude anything about permissions.
  • Use the project's own test framework (for example xUnit for .NET, or Playwright's request with a per-role storageState per e2e-playwright for web stacks).
  • Test account credentials come from environment variables, never from code (R-016, R-017).

3 · Dependency audit

Run according to the lockfile in the repo:

Repo hasCommand
pnpm-lock.yamlpnpm audit --prod
package-lock.jsonnpm audit --omit=dev
*.csprojdotnet list package --vulnerable --include-transitive
  • Report each vulnerability: package, version in use, severity, advisory id, fixed version, and the direct package that pulls it in.
  • The command fails, there is no network, or the advisory source cannot be read → report "cannot assess: <reason>". Never report clean.
  • Do not run audit fix, --force or a major upgrade on your own. Propose the smallest fixed version; the user approves, then a developer agent applies it.
  • A vulnerability only in a dev dependency, or on a code path that is never called → still list it, with the reason it ranks lower.

Excuses

ThoughtReality
"The endpoint already has [Authorize]"[Authorize] blocks anonymous users, not B reading A's data; the IDOR case is needed
"Green with admin is enough"Admin passes every check; test with an ordinary role
"The audit failed on network, treat it as clean"Write "cannot assess"
"audit fix is faster"It may bump a major version and change behavior; the user approves first

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.