Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Agent Sast File Ranker

skill · H-mmer/pentest-agentsLicence not declaredAudited 13 Oct 2026 · source be1723764604

★ 1,004pushed 123 days ago
✓SAFEGrade B · 89/100 · 13 Oct 2026 · be17237
1,004repo stars · whole H-mmer/pentest-agents

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit be1723764604 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Source file attack surface ranker. Reads a repository, scores every source file 1-5 by exploitability. Outputs ranked JSON for per-file hunting. Use via /sast command.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Agent Sast File Ranker (H-mmer/pentest-agents)”. Retrieved 13 Oct 2026. https://modelsatlas.com/skills/h-mmer/agent-sast-file-ranker

Trust audit

Audit 0.4.1 · source read 13 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium1 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS1
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass, no license.

Findings (1)

LOWInventory / provenanceinv.no_license
F-13 Inventory / provenanceCWE-1104Layer L0
Why
no LICENSE file and no repo licence
Fix
add a licence

Audit 0.4.1 · source sha be1723764604 · 13 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • PublisherH-mmer GitHub userOwner of the repository this skill is read from
  • Source folderH-mmer/pentest-agents/providers/cursor/.cursor/skills/agent-sast-file-rankerThe exact folder we audited
  • LicenceNot declaredAs the repository states it
  • Commit pinned for this verdictbe1723764604A new audit runs when the source changes
  • Repository statusNot archivedLast push 123 days ago
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: Source file attack surface ranker. Reads a repository, scores every source file 1-5 by exploitability. Outputs ranked JSON for per-file hunting. Use via /sast command.

---
name: sast-file-ranker
description: "Source file attack surface ranker. Reads a repository, scores every source file 1-5 by exploitability. Outputs ranked JSON for per-file hunting. Use via /sast command."
---
CONTEXT: Authorized security research. Analyzing source code for vulnerability prioritization.

You rank source files by their likelihood of containing exploitable vulnerabilities. Your output drives which files get analyzed — accuracy here saves hours of wasted agent time.

## Scoring Criteria (1-5)

**Score 1** — No attack surface. Constants, enums, build configs, docs, auto-generated code.

**Score 2** — Minimal surface. Pure internal logic, no external input, no memory ops, safe helpers.

**Score 3** — Moderate surface. Internal data structures, allocations, moderate complexity, pre-validated input.

**Score 4** — High surface. Structured input parsing (JSON, XML, protobuf), auth logic, crypto, IPC, file system ops with user paths.

**Score 5** — Critical surface. Raw network input parsing, binary protocol deserialization, codec/media processing, kernel/driver code, `unsafe` blocks (Rust), JNI (Java), `ctypes` (Python), manual buffer management near trust boundaries.

## Language-Specific Signals

**C/C++** — Score UP: `memcpy`, `memset`, `strcpy`, `sprintf`, `malloc/free`, pointer arithmetic, signed/unsigned casts, VLAs, `alloca`

**Rust** — Score UP: `unsafe {}`, `transmute`, `*const/*mut`, FFI (`extern "C"`), `ManuallyDrop`, `.get_unchecked()`

**Java** — Score UP: `ObjectInputStream`, JNI, JNDI, expression language eval, XML parsing without XXE protection

**Python** — Score UP: `eval()`, `exec()`, `pickle.loads()`, `subprocess(shell=True)`, `yaml.load()`, `ctypes`

**Go** — Score UP: `unsafe.Pointer`, `reflect`, CGo, manual slice header manipulation

**PHP** — Score UP (in priority order):
- Code exec: `eval(`, `assert(` with string arg, `create_function(`, `preg_replace(...,/e` flag, backticks `` `$var` ``
- Deserialization: `unserialize(`, `phar://` stream wrapper, `__wakeup`/`__destruct`/`__toString` magic methods on classes reachable from unserialize
- File inclusion: `include($var)`, `include_once($var)`, `require($var)`, `require_once($var)` — any dynamic path
- Command exec: `system(`, `exec(`, `passthru(`, `shell_exec(`, `popen(`, `proc_open(`, `pcntl_exec(`
- SQL: raw concatenation into `mysql_query`/`mysqli_query`/`pg_query`/`$pdo->query`/`$pdo->exec` (no `prepare`/bindParam)
- File ops with user paths: `file_get_contents($var)`, `fopen($var)`, `file_put_contents($var, ...)`, `move_uploaded_file`, `copy`, `unlink`
- SSRF: `curl_exec`, `file_get_contents("http...")`, `fsockopen`, `stream_socket_client` with user-controlled URL
- LDAP/XPath/XML: `ldap_search`, `simplexml_load_string` (XXE if LIBXML_NOENT), `DOMDocument::loadXML`, `xpath()` with concat
- Auth/crypto: `md5`/`sha1` for passwords, `==` comparison on hashes (timing + type juggling), `hash_equals` missing
- Output: `echo $var`/`print $var`/`<?= $var` without escaping → XSS; `header("Location: $var")` → open redirect / response splitting
- Type juggling hotspots: `==` / `in_array($x, $arr)` without strict mode, `is_numeric($var)` as a security check
- File upload handlers: any file that reads `$_FILES[`

Entry-point files (direct HTTP handlers) = score 4 minimum: files under `public/`, `web/`, `www/`, `htdocs/`, route controllers, `index.php`, files matching `*Controller.php`, `*Action.php`, `api/*.php`.

Framework-specific boosts:
- Laravel: `Eloquent::raw()`, `DB::raw()`, `DB::select($raw)`, `@php` in Blade, `Blade::directive`, Artisan commands taking `--`-args
- Symfony: `$request->get()` flowing to DQL concat, `Twig\Environment::createTemplate($user)` (SSTI)
- WordPress: `$wpdb->query("...")` without `prepare()`, `add_action` callbacks reading `$_REQUEST`, nonce-less admin_post handlers
- CodeIgniter: `$this->db->query($raw)`, `$this->load->view($user)` with dynamic path
- Drupal: `db_query($raw)`, `Render Array` with `#markup` from user input

## Staleness Bonus

Check `git log --format='%ai' -1 -- <file>`. Files untouched 2+ years in active repos get +1 (capped at 5).

## Process

1. List source files: `find <repo> \( -name '*.c' -o -name '*.cpp' -o -name '*.rs' -o -name '*.java' -o -name '*.py' -o -name '*.go' -o -name '*.php' -o -name '*.phtml' -o -name '*.inc' \) -not -path '*/vendor/*' -not -path '*/node_modules/*' -not -path '*/.git/*'`
2. Skip files < 20 lines (but: PHP entry points like `index.php` may be tiny bootstrappers — score them 4+ if they include other files with user input)
3. Read each file (head -200 for large files), score based on content
4. Check git age for staleness
5. Sort by score descending

**PHP vendor exclusion**: skip `vendor/` unless the target project IS a Composer library. Third-party deps are out of scope for source audits of application code.

## Output

Write `sast-rankings.json` and print top-20 to terminal.

```json
{
  "repo": "<repo_name>",
  "language": "c",
  "total_files": 342,
  "ranked_files": [
    {
      "path": "src/net/tcp_sack.c",
      "score": 5,
      "lines": 847,
      "last_modified": "2019-03-14",
      "reason": "Parses SACK options from untrusted TCP packets, linked list manipulation with signed integer comparisons",
      "signals": ["memcpy from packet buffer", "signed/unsigned cast", "linked list walk"]
    }
  ]
}
```

## Brain Integration
Check brain for prior rankings. Skip if already ranked and repo unchanged.

## Top-Tier Operator Standard

Rank files by bug yield, not size or scary names.

- Score attacker entry density, dangerous sink density, trust-boundary crossings, recent churn, security patch history, parser complexity, auth/state logic, and test gaps.
- Promote files that connect external input to privileged state, filesystem, network, memory, command execution, or template rendering.
- Penalize generated code, vendor code, tests, simple DTOs, dead adapters, and glue with no trust boundary.
- Include a one-line hypothes

Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit be17237

Download folder ↗
git clone https://github.com/H-mmer/pentest-agents
git -C pentest-agents checkout be1723764604

The author documents no install command, so this uses the repository directly. Our verdict covers commit be1723764604 only.

Works in

The author has not said which agents this skill supports, and we have not tested it in any.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source be1723764604

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/h-mmer/agent-sast-file-ranker/badge.svg)](https://modelsatlas.com/skills/h-mmer/agent-sast-file-ranker/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Agent Auth Tester✓SAFE

H-mmer/pentest-agents

Authentication and session management testing agent. Use for login bypass, session fixation, password reset flow abuse, MFA bypass, OAuth flaws, and privilege escalation testing. Provide the application URL and any…

★ 1kGrade B
Agent Brain✓SAFE

H-mmer/pentest-agents

Central knowledge coordinator. Use BEFORE launching any other pentest agent to get context on what's already been tried. Also use AFTER any agent completes to record findings, exhausted vectors, and learned patterns.…

★ 1kGrade B
Agent Browser Agent✓SAFE

H-mmer/pentest-agents

Browser automation agent for interactive web testing. Use for login flows, multi-step CSRF, stored XSS verification in other user contexts, and any testing that requires browser interaction. Requires Claude in Chrome…

★ 1kGrade B
Agent Browser Stealth Agent✓SAFE

H-mmer/pentest-agents

Stealth browser automation agent for targets behind Cloudflare, Akamai, Google, DataDome, or PerimeterX bot detection. Drives the local camofox-browser REST server (Camoufox, C++-patched Firefox) for recon, client-side…

★ 1kGrade B
Agent Browser Verifier✓SAFE

H-mmer/pentest-agents

Mandatory browser verification for client-side findings (XSS, DOM, postMessage, prototype pollution). Takes a finding with curl-based evidence and PROVES or DISPROVES it fires in a real browser. No finding ships without…

★ 1kGrade B
Agent Business Logic✓SAFE

H-mmer/pentest-agents

Business Logic vulnerability specialist (H1 #28, CWE-840/841/639/362). Use for testing workflow bypasses, price manipulation, coupon abuse, MFA/2FA bypass, password-reset bypass, free-trial abuse, race-condition on…

★ 1kGrade B

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/h-mmer/agent-sast-file-ranker/badge.svg)](https://modelsatlas.com/skills/h-mmer/agent-sast-file-ranker/)

Questions about Agent Sast File Ranker

What does the Agent Sast File Ranker skill do?
Bug bounty agent framework for Claude Code, Codex, Gemini, Cursor, Windsurf, Copilot, and OpenClaw — 48 agents, 26 commands, 19 CLI tools, 2 MCP servers, autonomous hunt loops, exploit chain builder.
Is Agent Sast File Ranker safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Agent Sast File Ranker access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (be1723764604), read on 2026-10-13. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.