agent-security-hardening
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
Perform a read-only, evidence-based security review of web, API, backend, React, React Native, mobile, dependency, CI/CD, and infrastructure changes. Use when asked for a security review, secure code review, vulnerability assessment, AppSec review, threat review, authentication review, authorization review, tenant-isolation review, secret scan triage, dependency-risk review, mobile security review, OWASP review, ASVS review, MASVS review, or pre-release security audit. Reports only reachable, material risks with concrete evidence and scoped remediation. Does not implement fixes, run intrusive tests, or claim penetration-test or compliance coverage.
Find security failures that a maintainer can reproduce and act on. Trace untrusted influence to a meaningful boundary, confirm the missing or ineffective control, and describe the resulting impact. A suspicious pattern is a lead, not a finding.
This skill is read-only. Use secure-software when asked to implement or remediate controls.
Report an issue only when the proof chain contains:
If one link is missing, keep investigating or omit the candidate. Never fill gaps with “could potentially.”
Severity measures demonstrated risk in this product, not the scariness of a weakness name.
| Level | Use when |
|---|---|
| P0 — Critical | The reviewed state enables active or near-certain broad compromise, irreversible destructive action, or exposure of highly sensitive data at major scale. Immediate containment is warranted. |
| P1 — High | A reachable path permits material cross-user/tenant access, privilege escalation, authentication bypass, code/command execution, exploitable injection, usable secret exposure, release compromise, or equivalent high impact. |
| P2 — Medium | A concrete weakness creates material but bounded impact, needs meaningful preconditions, or weakens a security boundary without yielding broad control. |
| P3 — Low | A verified defense-in-depth gap has a specific plausible consequence but limited impact or difficult preconditions. |
Do not report generic hardening, style preferences, speculative dependency concerns, or framework defaults as P3 findings. Put non-blocking coverage gaps in the verification summary instead.
| Need | Load |
|---|---|
| Category prompts, proof targets, and common exemptions across application and delivery boundaries | references/security-review-catalog.md |
| Candidate state, proof chains, severity calibration, scanner triage, deduplication, and report quality | references/evidence-and-severity.md |
Identify:
If reviewing a diff, read enough surrounding code and configuration to understand the actual runtime path. A changed line may be protected elsewhere.
Load references/security-review-catalog.md for the categories present in the reviewed scope. It is a prompt set, not a requirement to comment on every row.
Trace the relevant entry points:
Note which boundary owns validation, authentication, authorization, integrity, confidentiality, and rate/resource controls.
Verify protocol and library configuration rather than rebuilding protocol theory from call-site snippets.
Check enrollment, verification, login, MFA, logout, recovery, credential change, session rotation, expiry, revocation, concurrent sessions, step-up actions, and account-enumeration behavior. For browser sessions, examine cookie and CSRF boundaries. For public mobile clients, examine redirect ownership, state/nonce, PKCE, token destination, and recovery from revoked credentials.
For each protected operation, identify the trusted principal, action, loaded object, tenant, policy, and enforcement point.
Exercise the authorization matrix mentally or with existing safe tests:
UI visibility and client-side guards are not authorization evidence.
Trace untrusted data to each interpreter and capability:
Distinguish validation, normalization, parameterization, encoding, and sanitization. Each solves a different boundary problem.
Follow sensitive data through collection, transport, storage, caches, logs, analytics, crash reports, backups, exports, support tooling, deletion, and mobile device surfaces.
Confirm that secrets are absent from client artifacts and source, scoped to the correct service/environment, protected in CI, redacted from telemetry, and rotatable. For cryptography, verify maintained primitives, authenticated modes where required, key separation and ownership, randomness, password hashing, rotation, and failure behavior. A familiar algorithm name alone proves nothing about safe use.
Inspect the lockfile and the exact dependency/configuration change. Consider package identity, provenance, install scripts, native code, maintainer or repository changes, transitive reach, advisories, build identity, CI secret exposure, artifact integrity, signing/update channels, production defaults, and rollback.
An advisory match is a candidate. Confirm the resolved version, affected component, vulnerable feature, runtime reachability, platform, and mitigation before reporting it.
Check whether high-risk success and denial events are attributable without leaking protected content. Review alertable signals, tamper/access protection, correlation, retention, user-safe errors, privileged diagnostics, incident rotation/revocation, migrations, and rollback behavior.
Logs are evidence only if the reviewed path actually emits them and the relevant deployment preserves them.
Load references/evidence-and-severity.md before promoting a candidate to a finding or assigning priority.
Use the least invasive proof that closes the chain:
Record what was not verified and why. Do not manufacture exploit payloads merely to make the report look concrete.
Order findings by severity, then confidence. Use one entry per root cause:
[P1] Enforce tenant ownership when loading invoice exports
Location: src/exports/invoices.ts:84
The authenticated route accepts an invoice ID and loads it without constraining the
query to the caller's tenant. Any member who obtains another tenant's ID can export
that invoice. The route-level login check establishes identity but never authorizes
the loaded object. Bind the lookup to the authenticated tenant and retain a negative
cross-tenant regression test.
Evidence: route -> handler -> unconstrained lookup; no downstream policy check;
existing fixture IDs are globally addressable.
Each finding must include:
Never include live credentials, full tokens, personal data, or weaponized instructions. Redact evidence while preserving its meaning.
Block for P0/P1, Needs changes for P2/P3, or Approve only when no finding survives within the stated scope.If there are no findings, say so directly. Do not add filler findings to demonstrate effort, and do not turn Approve into a claim that the system has no vulnerabilities.
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail203k4,904 new stars in the last 7 days
GAgarrytan/gstack143k598 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
RUruvnet/RuView106k739 new stars in the last 7 days