oss-forensics

oss-forensics is a skill for Claude Code, Codex from metaspartan/cybara. It costs 30 tokens per session (640 once invoked), scanned A, original, MIT.

A defensive investigation guide for examining suspicious changes in open-source repositories, such as deleted commits, forced history changes, or compromised releases.

In plain words
What is it for?
It is for collecting repository and release evidence, checking commits and actors, documenting findings with evidence IDs, and investigating possible package or maintainer compromise.
Why use it?
It provides an evidence trail for supply-chain investigations, where attackers may alter code or releases that other software depends on. It also separates confirmed facts from unverified possibilities and protects secrets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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.

agentmods
npx agentmods add skills/metaspartan/cybara/oss-forensics
Any agent
npx skills add metaspartan/cybara --skill oss-forensics
Clone the repo
git clone --depth 1 https://github.com/metaspartan/cybara

Made for: Claude Code, 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 oss-forensics

README.md
[![agentmods](https://agentmods.dev/badge/skills/metaspartan/cybara/oss-forensics.svg)](https://agentmods.dev/skills/metaspartan/cybara/oss-forensics)
Your own site
<a href="https://agentmods.dev/skills/metaspartan/cybara/oss-forensics"><img src="https://agentmods.dev/badge/skills/metaspartan/cybara/oss-forensics.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found 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.00030 $0.00640
Opus 5 $0.00015 $0.00320
Sonnet 5 $0.00006 $0.00128
Haiku 4.5 $0.00003 $0.00064

Measured 2d ago against content hash af855bb2e944, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

oss-forensics scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

metadata: {"cybara":{"requires":{"bins":["git","curl","jq","rg"]}}}
skills/oss-forensics/SKILL.md · 79 lines

How it starts

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

OSS Forensics

Use this for defensive supply-chain investigations: suspicious commits, force-pushes, deleted releases, maintainer takeover concerns, leaked secrets, or package compromise.

Guardrails

  • Evidence first. Every claim needs an evidence ID such as EV-0001.
  • Separate fact from hypothesis. Prefix unverified inferences with [HYPOTHESIS].
  • Do not run code from the investigated repository.
  • Redact secrets in chat and reports.
  • Double-check SHAs, URLs, package versions, and actor names against more than one source when possible.

Evidence Store

Create a working directory outside the target repo:

INVESTIGATION="oss-forensics-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$INVESTIGATION"/{evidence,reports}
cd "$INVESTIGATION"
printf "# Evidence\n\n" > evidence/index.md

Evidence entry shape:

EV-0001
Source: local git log
Time collected: <ISO timestamp>
Claim supported: <short claim>
Artifact: evidence/git-log.txt
Notes: <why it matters>

Collection Plan

  1. Extract targets:
    • repo, package names, SHAs, actors, date range, releases, domains, URLs.
  2. Local git source:
    • git clone --mirror or normal clone.
    • git log --all --full-history --stat --format="%H|%ae|%an|%ai|%s".
    • git fsck --lost-found --unreachable.
    • git branch -a -v, tags, release branches, suspicious binaries.
  3. GitHub/API source:
    • commits, PRs, issues, releases, events, tags.
    • Use GITHUB_TOKEN if available to avoid low rate limits.
  4. Archive sources:
    • Wayback CDX for deleted PRs/issues/releases.
    • GH Archive or public event datasets when date windows matter.
  5. Package registries:
    • npm/PyPI/crates/GitHub Releases metadata, checksums, publish dates.
  6. IOC extraction:
    • domains, IPs, package names, hashes, suspicious scripts, workflow edits.

Analysis

Create hypotheses, then validate:

  • Force-push hide: evidence from local unreachable commits plus public events.
  • Maintainer takeover: unusual actor timing, permissions, workflow changes, signed commit drift.
  • Release/package swap: tag/release/package timestamps disagree or artifacts changed.
  • Secret leak: secret-like material existed in a reachable/dangling commit and was pushed externally.

Read the full file on GitHub · 79 lines

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. 2d ago First seen · 79 lines · 30 tokens per session scan A af855bb2e944

Subscribe to this mod's changes

oss-forensics is a skill published in the GitHub repository metaspartan/cybara (26 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 640 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

google/adk-js · 62 tokens

kodama-verification

Define measurable success criteria and collect targeted test, build, lint, type-check, or smoke-test evidence before claiming work is complete.

amergrgic/kodama · 31 tokens

gh-issues

Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5]…

google/adk-js · 116 tokens

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project…

google/adk-js · 67 tokens

kodama-behavior

Classify requests, assess unfamiliar codebases, delegate work safely, and recover from failed attempts. Use for multi-step, ambiguous, or parallelizable work.

amergrgic/kodama · 37 tokens

kodama-constraints

Enforce non-negotiable safety, scope, security, and quality constraints for implementation and review work.

amergrgic/kodama · 26 tokens