threat-check
Security review of code or a change for exploitable vulnerabilities.
Skill by shankarr1503
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shankarr1503-threat-check
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, data, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/threat-check
What's inside
- Skill name
threat-check- Description
- Security review of code or a change for exploitable vulnerabilities. Use when asked about security, before shipping auth, payments, file handling, user input, APIs or infrastructure changes, or when reviewing untrusted-input paths. Traces attacker-controlled data to dangerous sinks and reports only demonstrable issues.
- License
- MIT
- Instructions
- 55 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Threat check Security review is about one question: **can an attacker make this code do something it should not?** Answer it by tracing data, not by pattern-matching scary function names. ## 1. Model the system (5 minutes) - **Assets:** what is worth stealing or breaking (user data, credentials, money, admin actions, availability). - **Entry points:** HTTP handlers, CLI args, file uploads, webhooks, queue consumers, environment, config files, third-party responses. - **Trust boundaries:** where data crosses from less trusted to more trusted (browser → server, tenant → shared service, user → admin, internet → internal network). ## 2. Trace sources to sinks For each entry point, follow attacker-controlled values to these sinks and check the defense at each: | Sink | Look for | Correct defense | | ----------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | SQL / NoSQL query | string concatenation, f-strings, `$where` | parameterised queries, ORM bindings | | Shell / process | `exec`, `system`, `shell=True`, backticks | argument arrays, no shell, allowlist | | File system | user value in a path | canonicalise + check inside base dir; reject symlinks | | HTML / templates | `innerHTML`, `dangerouslySetInnerHTML`, Jinja `safe` filter, unescaped templates | context-aware escaping, CSP | | Outbound URL | fetching a user-supplied URL | allowlist hosts; block private/link-local IPs incl. after redirects (SSRF) | | Redirects | `redirect(req.query.next)` | relative paths or allowlist | | Deserialisation | `pickle`, `yaml.load`, Java/PHP native deserialise | safe loaders, schemas | | Crypto | custom crypto, `md5`/`sha1` for passwords, static IVs, `Math.random` for tokens | vetted libraries, argon2/bcrypt/scrypt, CSPRNG | | Logs / errors | secrets, tokens, PII, stack traces to users | redaction, generic errors | ## 3. Check access control Most real-world breaches here are boring: - Every state-changing or data-returning endpoint checks **authentication** and **authorization for this specific object** (no IDOR: `GET /invoices/123` must verify the invoice belongs to the caller's tenant/user). - Authorization is enforced server-side, not just hidden in the UI. - Sessions/tokens: expiry, rotation on login/privilege change, revocation, secure cookie flags, CSRF protection for cookie auth. - Rate limits on login, signup, password reset, OTP and expensive endpoints. ## 4. Check secrets and supply chain - No credentials, keys or tokens in code, tests, fixtures, git history, or client bundles. Search history with tools that report commit and path without printing the value (`git log --all --format=%h --name-only -S 'BEGIN PRIVATE KEY'`, gitleaks, trufflehog), so the check does not leak the secret into logs. - New dependencies: maintained, expected name (typosquats), pinned via lockfile. Run the ecosystem's audit (`npm audit`, `pip-audit`, `cargo audit`, `govulncheck`) and report results. - CI: no secrets exposed to untrusted pull requests; actions pinned. ## Report only what you can demonstrate For each finding give a concrete exploit scenario. No scenario, no finding — list it under "hardening suggestions" instead. ``` [Critical|High|Medium|Low] <title> — path:line Attack: <who sends what, through which entry point> Result: <what they gain> Fix: <specific change; prefer the safer default> ``` Then: entry points reviewed, areas not reviewed, and tools run with results. Never claim code is "secure" — say what was checked.
From shankarr1503/omnistack, MIT.
More from shankarr1503/omnistack
- 0.565score
api-contract
shankarr1503
Design or review an API (REST, GraphQL, gRPC, SDK or library interface) for clarity, consistency and long-term compatibility.
SkillAFreshness: AClaude Code +9 - 0.565score
commit-craft
shankarr1503
Write clean commits and pull request descriptions that reviewers love.
SkillAFreshness: AClaude Code +9 - 0.565score
fix-ci
shankarr1503
Diagnose and fix a failing CI pipeline, build or test job.
SkillAFreshness: AClaude Code +9 - 0.565score
legacy-tests
shankarr1503
Add tests to untested or legacy code before changing it.
SkillAFreshness: AClaude Code +9 - 0.565score
map-codebase
shankarr1503
Rapidly understand an unfamiliar repository and produce a practical map of it.
SkillAFreshness: AClaude Code +9 - 0.565score
perf-hunt
shankarr1503
Measure-first performance optimization.
SkillAFreshness: AClaude Code +9 - 0.565score
root-cause
shankarr1503
Find the real cause of a bug before changing code.
SkillAFreshness: AClaude Code +9 - 0.565score
safe-migration
shankarr1503
Plan and write zero-downtime database and schema migrations.
SkillAFreshness: AClaude Code +9 - 0.565score
safe-refactor
shankarr1503
Restructure code without changing behavior.
SkillAFreshness: AClaude Code +9 - 0.565score
ship-review
shankarr1503
Rigorous pre-merge review of a diff, branch or pull request.
SkillAFreshness: AClaude Code +9 - 0.565score
skill-forge
shankarr1503
Create a new high-quality agent skill (SKILL.md) for Claude Code, Codex or OpenCode.
SkillAFreshness: AClaude Code +9 - 0.565score
upgrade-deps
shankarr1503
Upgrade dependencies, frameworks or language versions safely.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 7, 2026 (22 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/shankarr1503/omnistack
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from shankarr1503
- 0.565score
commit-craft
shankarr1503
Write clean commits and pull request descriptions that reviewers love.
SkillAFreshness: AClaude Code +9 - 0.565score
fix-ci
shankarr1503
Diagnose and fix a failing CI pipeline, build or test job.
SkillAFreshness: AClaude Code +9 - 0.565score
legacy-tests
shankarr1503
Add tests to untested or legacy code before changing it.
SkillAFreshness: AClaude Code +9 - 0.565score
map-codebase
shankarr1503
Rapidly understand an unfamiliar repository and produce a practical map of it.
SkillAFreshness: AClaude Code +9 - 0.565score
perf-hunt
shankarr1503
Measure-first performance optimization.
SkillAFreshness: AClaude Code +9 - 0.565score
api-contract
shankarr1503
Design or review an API (REST, GraphQL, gRPC, SDK or library interface) for clarity, consistency and long-term compatibility.
SkillAFreshness: AClaude Code +9
Cite this page
threat-check skill. Agent Mart. https://agentmart.dev/skills/shankarr1503-threat-check (last updated 2026-10-24)