finding-discovery

finding-discovery is a skill for Codex from bex-co/bex-security. It costs 58 tokens per session (921 once invoked), scanned A, a copy of finding-discovery, Apache-2.0.

A guide for finding possible security vulnerabilities in source code or a code change, using the repository's security policy as context. A security vulnerability is a weakness that could let someone misuse a system or access something they should not.

In plain words
What is it for?
Use it during the finding-discovery stage of a security review or when explicitly looking for candidate vulnerabilities in a repository or code change.
Why use it?
It separates the search for possible problems from a full pull request or repository scan. It also ensures the review follows the applicable SECURITY.md guidance.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it during the finding-discovery stage of a security review or when explicitly looking for candidate vulnerabilities in a repository or code change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bex-co/bex-security/finding-discovery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bex-co/bex-security --skill finding-discovery
Clone the repo
git clone --depth 1 https://github.com/bex-co/bex-security

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for finding-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/bex-co/bex-security/finding-discovery/github.svg)](https://agentmods.dev/skills/bex-co/bex-security/finding-discovery)
Your own site
<a href="https://agentmods.dev/skills/bex-co/bex-security/finding-discovery"><img src="https://agentmods.dev/badge/skills/bex-co/bex-security/finding-discovery/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for finding-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/bex-security/finding-discovery"><img src="https://agentmods.dev/badge/skills/bex-co/bex-security/finding-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 921 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00921
Opus 5.5 $0.00023 $0.00368
Sonnet 5.5 $0.00012 $0.00184
Haiku 4.5 $0.00006 $0.00092

Measured 7d ago against content hash ca30309e330d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

finding-discovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to finding-discovery — 161 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/codex-security/skills/finding-discovery/SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Finding Discovery

Identify technically plausible security vulnerabilities in the authorized source, using the threat model and applicable security policy. Discovery preserves evidence for later validation; it does not decide final severity.

Read ../../references/artifact-storage.md before saving output and ../../references/security-guidance.md before source review. Resolve applicable policy for each reviewed path, including delegated assignments. Honor explicit input and output paths; ask for an explicitly required input only when its absence prevents the requested analysis.

Select the Workflow

Standard and Deep workers use their coordinator's self-contained prompts rather than this phase skill.

  • Running compact diff: read the supplied inventory through list_codex_security_review_items, review every assigned changed file, and record all candidates once with record_codex_security_discovery_candidates. Do not create ranked worklists, per-finding ledgers, receipts, or discovery reports.
  • Standalone diff without a compact inventory: use ../security-scan/references/scan-artifacts-and-ledger.md for the changed-file worklist and retained phase artifacts.
  • Standalone repository discovery: apply the evidence criteria below to the authorized source and return the candidates and coverage limitations. Do not start a scan or run the diff worklist pipeline.

For a diff, inspect the actual changed behavior, including deleted files at the baseline revision. Follow supporting code far enough to understand the affected boundary; expand to sibling callers when a changed shared control affects them. Do not broaden into an unrelated repository audit.

Evidence Criteria

  • Trace attacker-controlled input or a privileged operation through the closest relevant control to the sink and security impact. Explain why the control is absent, bypassable, or applied to the wrong value or boundary.
  • Check runtime reachability and deployment assumptions. Record effective guards and containment as counterevidence; a safe sibling implementation does not establish that the candidate path is safe.
  • Preserve the root-control location as well as entrypoints, wrappers, concrete implementations, and sinks needed to understand the claim. When the claim covers several implementations, inspect those implementations rather than asserting that all are affected.
  • Keep independently reachable vulnerable instances addressable. Merge duplicate observations of the same source/control/sink/impact instead of splitting cosmetic variants; retain all affected locations and original candidate IDs when merging.
  • Follow explicit user or advisory seeds to their exact source and control. Record the evidence that supports, disproves, or leaves the seed unresolved; a nearby issue in the same family does not close it. Use only authorized source material and do not fetch advisory links without permission.
  • Distinguish concrete security impact from maintainability or robustness concerns. A crash, dangerous API, optional feature, or missing check is a lead, not a finding by itself. Carry plausible candidates with explicit proof gaps to validation rather than inventing evidence or discarding them for lack of a runnable reproduction.

Read the full file on GitHub · 46 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · -114 lines ca30309e330d
  2. 2mo ago Changed · +2 lines 1d3a159a5ed8
  3. 3mo ago First seen · 158 lines · 58 tokens per session scan A 938b73329188

Subscribe to this mod's changes

finding-discovery is a skill published in the GitHub repository bex-co/bex-security (53 stars, last pushed 2d ago), licensed Apache-2.0. It adds 58 tokens to every session and 921 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to finding-discovery, differing in 161 lines, and is treated as a copy.

Related

finding-discovery compared with skills from other repositories

finding-discovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
finding-discoverybex-co/bex-securitySkill532d agoApache-2.0A58Codex
bugcrowd-reportingelementalsouls/Claude-BugHunterSkill28kyesterdayMITA171Claude Code
enterprise-vpn-attackelementalsouls/Claude-BugHunterSkill28kyesterdayMITA158Claude Code
hunt-api-misconfigelementalsouls/Claude-BugHunterSkill28kyesterdayMITA207Claude Code
hunt-atoelementalsouls/Claude-BugHunterSkill28kyesterdayMITA241Claude Code
cloud-iam-deepelementalsouls/Claude-BugHunterSkill28kyesterdayMITB238Claude Code
security-reviewcompozy/compozySkill2.9ktodayMITA61Claude Code