/odh-security:security-alertfrom odh-security
Filters Hacker News stories for supply-chain security threats relevant to Red Hat/RHEL, Python (PyPI/pip), or JavaScript/TypeScript (npm/yarn/pnpm). Reads stories.json, performs semantic analysis with optional HN thread fetching, and writes findings.json.
Ships in odh-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read a set of Hacker News stories and decide which ones are worth alerting on
— meaning they plausibly report a supply-chain threat that affects the Red
Hat / RHEL ecosystem, Python, or JavaScript/TypeScript. Write those stories
to findings.json.
The pipeline controls when this skill runs and has already built the candidate story list. The scope here is semantic analysis only — do not re-fetch or reorder the candidate list, manage state, check registries, or post to Slack. Fetching individual HN thread detail via the Algolia items API is permitted up to the cap in Step 2.
Run the steps below in order. At any early-exit point, stop and take no further action.
Read stories.json from the workspace:
if [ ! -f stories.json ]; then
echo '[]' > findings.json
exit 0
fi
cat stories.json
Each story in the array has:
| Field | Description |
|---|---|
id | HN item ID (string) |
title | Story headline |
url | Linked article URL, or HN thread URL if no external link |
hn_url | Direct HN thread link |
If the array is empty, stop here and write an empty findings array to
findings.json.
Apply two independent tests to each story. A story must pass both to be included. This is a judgment call — do not rely on keyword matching alone.
The story must directly involve one of these ecosystems:
Python
JavaScript / TypeScript
Red Hat / RHEL ecosystem
registry.redhat.io / registry.access.redhat.com
imageExclude stories where the affected ecosystem is clearly something else entirely — Go modules, Rust crates, Ruby gems, Java/Maven, .NET NuGet, Swift, Dart, PHP Composer, etc. — even if the attack technique is novel or interesting.
Ecosystem uncertain? If you cannot confirm the story touches one of the three ecosystems above (even after reading the HN thread), exclude it. Reducing false positives is the priority here.
The story must also describe an adversarial attack on the software supply chain itself — the dependency, build, or distribution infrastructure has been compromised or weaponized. Specifically:
Malicious or typosquatted packages
Compromised maintainer accounts or signing keys
Backdoors in open-source dependencies
Attacks on source code repositories or CI/CD infrastructure
Dependency confusion or namespace hijacking
Exclude stories about:
The test: has the dependency, build, or distribution pipeline been adversarially compromised or weaponized in an in-scope ecosystem? If either part of that test fails, exclude the story.
Fetch the HN thread for any story that is not immediately obvious noise (title makes it unambiguously out of scope). Cap total thread fetches at 15 per run — if you reach the cap, exclude remaining ambiguous stories rather than including them unchecked.
curl -sf "https://hn.algolia.com/api/v1/items/<id>"
If this exits non-zero or returns no data (network error, timeout), decide based on the title alone and proceed — do not let a single fetch failure block the run.
While reading the thread:
article_summary.When uncertain about ecosystem relevance (Test A), exclude. When uncertain about whether a confirmed in-scope story describes a real supply-chain attack (Test B), include — a missed real threat is worse than one extra alert.
Write an array of the stories worth alerting on to findings.json. Write an
empty array if no stories were relevant.
Each object:
{
"hn_id": "<HN story ID>",
"package": "<named package or tool, or empty string if none>",
"registry": "npm" | "pypi" | "",
"versions_affected": "<version range, 'unknown', or empty>",
"article_summary": "<one sentence: what happened, what was compromised, who is affected>",
"hn_title": "<story headline>",
"hn_url": "<https://news.ycombinator.com/item?id=...>"
}
For stories without a specific npm/PyPI package (e.g. a compromised VSCode
extension, a GitHub breach, a CI/CD attack): leave package, registry, and
versions_affected as empty strings. The article_summary is the primary
signal — make it count.
Write the array to findings.json in the workspace and validate it:
cat > findings.json << 'EOF'
[
{ ... }
]
EOF
jq . findings.json >/dev/null
| Scenario | Behavior |
|---|---|
stories.json missing | Write [] to findings.json; exit 0 |
stories.json present but empty array | Write [] to findings.json; stop |
| Thread fetch fails (curl non-zero) | Decide on title alone; proceed |
| No stories are relevant | Write [] to findings.json; stop |
| Uncertain about ecosystem (Test A) | Exclude it |
| Uncertain about threat type (Test B), ecosystem confirmed | Include it |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub opendatahub-io/ai-helpers --plugin odh-security2 skills in this plugin
3 plugins in one repository ship this exact skill · first indexed Aug 25, 2026
Other plugins' skills for the same job