Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"metadata": {
"description": "Claude Code skills for earning Security Slam project badges.",
"version": "0.0.10"
"version": "0.0.11"
},
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion CRA-READINESS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CRA Readiness

This project voluntarily documents its security practices using the Security Slam
[CRA Readiness checklist](https://securityslam.com/library/cra-readiness), aligned
[CRA Readiness checklist](https://securityslam.com/library/cra-readiness-guide), aligned
with the EU [Cyber Resilience Act](https://openssf.org/public-policy/eu-cyber-resilience-act/).

## Disclaimer
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ That question runs `slam-status`, which is read-only. It reports where you stand

## Status

Early preview. The skills work end to end on four repositories, and each one earned evidence for all six badges using the skills:
Early preview. The skills work end to end on four repositories. Each one earned evidence for all six badges under the earlier criteria, when Defender's evidence was the bestpractices.dev Baseline badge. Defender now requires published grc.store results, and none of the four has published yet:

| Repository | What it is | Baseline Level 1 |
| --- | --- | --- |
Expand All @@ -48,6 +48,7 @@ Not yet tested:
- OSPS Baseline Level 2 and 3 paths, such as release signing, SBOMs (software bills of materials), and release verification docs. All four repositories stopped at Level 1.
- The prose self-assessment option of `inspector`, and its hand-off to the gemara-ai plugin.
- Projects hosted outside GitHub.
- The grc.store publish workflow (`defender` and `mechanizer` Option 2) on any of the four repositories. The template follows a workflow that has published to production, but no Slam repository has run it.
- Agents other than Claude Code and Codex, and every skill except `slam-status` outside Claude Code.

The skills pin the specification versions listed under [Versions Targeted](#versions-targeted). When those specifications change, the skills can lag behind until a release updates them.
Expand Down Expand Up @@ -95,8 +96,8 @@ Not sure where a project stands? Run `slam-status` first. Otherwise start with C
| `cleaner` | Complete and validate the project's Security Insights YAML file. |
| `chronicler` | Complete every OSPS Baseline documentation control (OSPS-DO) for the project's maturity level. |
| `inspector` | Complete a Gemara threat assessment or an OSPS self-assessment. |
| `mechanizer` | Automate Baseline evaluation and publish results: 100% on LFX Insights or zero failures from the OSPS Baseline GitHub Action. |
| `defender` | Meet the OSPS Baseline for the project's maturity level and earn the bestpractices.dev Baseline badge. |
| `mechanizer` | Run a recurring OSPS Baseline scan with the scanner action or the grc.store publish workflow. |
| `defender` | Reach a passing OSPS Baseline status for the project's maturity level, published to grc.store. |
| `cra` | Implement voluntary EU Cyber Resilience Act (CRA) readiness practices and publish a readiness checklist with a disclaimer. |
| `slam-status` | Check a repo against all six badges at once and recommend which one to work on next. Read-only. |

Expand Down
2 changes: 1 addition & 1 deletion security-slam-skills/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "security-slam-skills",
"description": "One skill per Security Slam project badge: Cleaner, Chronicler, Inspector, Mechanizer, Defender, and CRA, plus a status check across all six.",
"version": "0.0.10",
"version": "0.0.11",
"author": {
"name": "Security Slam",
"url": "https://securityslam.com"
Expand Down
11 changes: 7 additions & 4 deletions security-slam-skills/skills/cleaner/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ find . -maxdepth 2 -iname 'security-insights.y*ml' -not -path './node_modules/*'

If one exists, read it and note its `header.schema-version`. A `schema-version` of `1.x.x` is the retired v1 format. Tell the user and migrate it to v2 in step 4.

If none exists, create `SECURITY-INSIGHTS.yml` at the repository root. That is the name and location the Slam instructions use. The upstream spec also accepts `security-insights.yml` in the root or in `.github/`. Keep whatever convention the project's other tooling already expects.
If none exists, create `security-insights.yml` at the repository root. That is the name and location the Slam instructions use. The upstream spec also accepts `SECURITY-INSIGHTS.yml` and the `.github/` directory, so keep an existing file's name and location. The commands below use `$SI` for the file's path.

### 2. Gather evidence

Expand Down Expand Up @@ -108,22 +108,25 @@ security:
Validate against the CUE schema that matches `header.schema-version`. The spec does not publish a CUE module, so download the schema file for that tag:

```bash
v=$(yq '.header.schema-version' SECURITY-INSIGHTS.yml)
SI=security-insights.yml # or the existing file's path
v=$(yq '.header.schema-version' "$SI")
curl -sfL "https://raw.githubusercontent.com/ossf/security-insights/v${v}/spec/schema.cue" -o /tmp/si-schema.cue
cue vet -d '#SecurityInsights' /tmp/si-schema.cue SECURITY-INSIGHTS.yml
cue vet -d '#SecurityInsights' /tmp/si-schema.cue "$SI"
```

If `cue` is missing, install it with `go install cuelang.org/go/cmd/cue@latest` or `brew install cue-lang/tap/cue`. Silent output means the file is valid.

Then check every URL in the file resolves:

```bash
grep -oE 'https://[^ "]+' SECURITY-INSIGHTS.yml | sort -u | while read -r u; do
grep -oE 'https://[^ "]+' "$SI" | sort -u | while read -r u; do
code=$(curl -s -o /dev/null -w '%{http_code}' -L "$u"); echo "$code $u"; done
```

Report any non-200 URL to the user. Do not mark the badge ready while a URL is broken.

Suggest the user review the file in the [Security Insights Editor](https://security-insights.openssf.org/editor/). It loads an existing file and validates it section by section, which suits a maintainer checking a draft field by field.

Expect a 404 for `header.url`, and for links to files added in the same change, until the change merges to the default branch. Tell the user to re-check those URLs after merging. Treat any other non-200 URL as broken.

### 6. Offer CI validation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ header:
schema-version: 2.2.0
last-updated: 'YYYY-MM-DD'
last-reviewed: 'YYYY-MM-DD'
url: https://github.com/OWNER/REPO/raw/main/SECURITY-INSIGHTS.yml
url: https://github.com/OWNER/REPO/raw/main/security-insights.yml

project:
name: PROJECT_NAME
Expand Down
8 changes: 4 additions & 4 deletions security-slam-skills/skills/cra/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The CRA badge requires implementing the CRA readiness guidelines provided by the

"CRA readiness" is a voluntary transparency signal. It is not regulatory compliance. The CRA places no obligations on open source developers or volunteer maintainers merely for publishing or maintaining code. That covers almost every open source project.

Source: the Security Slam [CRA Readiness Guide](https://securityslam.com/library/cra-readiness) by Roman Zhukov (Red Hat) and Madalin Neag (Linux Foundation), and the OpenSSF [CRA Brief Guide for OSS Developers](https://best.openssf.org/CRA-Brief-Guide-for-OSS-Developers). Recommended additions to item 1 come from the Linux Foundation [CRA Stewards Playbook](https://policy.openssf.org/CRA/stewards-playbook.html).
Source: the Security Slam [CRA Readiness badge page](https://securityslam.com/library/cra-readiness), its [CRA Readiness Guide](https://securityslam.com/library/cra-readiness-guide) by Roman Zhukov (Red Hat) and Madalin Neag (Linux Foundation), and the OpenSSF [CRA Brief Guide for OSS Developers](https://best.openssf.org/CRA-Brief-Guide-for-OSS-Developers). Recommended additions to item 1 come from the Linux Foundation [CRA Stewards Playbook](https://policy.openssf.org/CRA/stewards-playbook.html).

## Critical Rules

Expand Down Expand Up @@ -86,17 +86,17 @@ This project is CRA compliant and guarantees vulnerability fixes within 30 days.
3. Keep the disclaimer intact.
4. Link the file from the README.

### 5. Machine-readable (optional)
### 5. Link the evidence from Security Insights

Security Insights has no CRA-specific field. Record the underlying evidence in the standard v2 fields instead: `repository.documentation.security-policy`, `contributing-guide`, `project.documentation.support-policy`, `repository.release.changelog`, and `repository.license`. Validate with the `cleaner` skill.
The badge page asks for each artifact to be linked from the Security Insights file. If the project has none, run the `cleaner` skill first. Security Insights has no CRA-specific field, so record the evidence in the standard v2 fields: `repository.documentation.security-policy`, `contributing-guide`, `project.documentation.support-policy`, `repository.release.changelog`, and `repository.license`. Validate with the `cleaner` skill.

Do not copy the Kyverno file the CRA guide links as its example. It declares schema 2.1.0 but uses v1 field names and fails v2 validation.

### 6. Submission checklist

- [ ] All eight items `Met`, with steward guidance applied if it exists
- [ ] CRA-READINESS.md published with the disclaimer and linked from the README
- [ ] Security Insights updated and valid (if used)
- [ ] Each artifact linked from Security Insights, and the file validates
- [ ] Completion notification submitted per the steward's instructions

## Next Steps to Suggest
Expand Down
2 changes: 1 addition & 1 deletion security-slam-skills/skills/cra/assets/CRA-READINESS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CRA Readiness

This project voluntarily documents its security practices using the Security Slam
[CRA Readiness checklist](https://securityslam.com/library/cra-readiness), aligned
[CRA Readiness checklist](https://securityslam.com/library/cra-readiness-guide), aligned
with the EU [Cyber Resilience Act](https://openssf.org/public-policy/eu-cyber-resilience-act/).

## Disclaimer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CRA Readiness Items: Examples and Guidance

Source: the Security Slam [CRA Readiness Guide](https://securityslam.com/library/cra-readiness). Example links are the guide's own picks.
Source: the Security Slam [CRA Readiness Guide](https://securityslam.com/library/cra-readiness-guide). Example links are the guide's own picks.

## 1. Cybersecurity and Vulnerability Management Policy

Expand Down Expand Up @@ -88,4 +88,4 @@ A LICENSE or COPYING file, ideally from the [OSI-approved list](https://opensour

## 8. OSPS Baseline Level 1

Meet [OSPS Baseline](https://baseline.openssf.org) Level 1. Items 1 through 7 cover much of it already. Use the `defender` skill for the full gap analysis, and link the evidence (a bestpractices.dev badge, a completed checklist, or scanner results).
Meet [OSPS Baseline](https://baseline.openssf.org) Level 1. Items 1 through 7 cover much of it already. Use the `defender` skill for the full gap analysis, and link the evidence (a grc.store target page, a completed checklist, or scanner results).
Loading
Loading