Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):

- brain/        LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
                dispatch, A51 channels, and the OSINT cluster
- knowledge/    LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
                MITRE ATT&CK data
- reference/    defensive threat-reference (C3, shhbruh doc) + AdaYaml parser

License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.

Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.

https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
2026-06-10 06:53:01 +00:00

57 lines
1.9 KiB
Markdown

# API Reference: Securing Container Registry Images
## Trivy CLI
```bash
trivy image [OPTIONS] IMAGE
```
| Flag | Description |
|------|-------------|
| `--severity` | Filter by severity: CRITICAL,HIGH,MEDIUM,LOW |
| `--format` | Output format: table, json, sarif, spdx-json |
| `--exit-code 1` | Exit with code 1 if vulnerabilities found |
| `--scanners` | Scanner types: vuln, misconfig, secret |
| `--output FILE` | Write results to file |
## Cosign CLI
| Command | Description |
|---------|-------------|
| `cosign sign --key KEY IMAGE` | Sign an image with a private key |
| `cosign verify --key KEY IMAGE` | Verify image signature |
| `cosign generate-key-pair` | Generate signing key pair |
| `cosign attest --predicate FILE IMAGE` | Attach signed attestation |
| `cosign attach sbom --sbom FILE IMAGE` | Attach SBOM to image |
## Syft CLI (SBOM Generation)
```bash
syft IMAGE -o FORMAT > output.json
```
Formats: `spdx-json`, `cyclonedx-json`, `table`, `json`
## boto3 ECR Client
| Method | Description |
|--------|-------------|
| `describe_repositories()` | Get repository config (scan settings, mutability) |
| `put_image_scanning_configuration()` | Enable/disable scan on push |
| `put_image_tag_mutability()` | Set tag immutability (MUTABLE/IMMUTABLE) |
| `put_lifecycle_policy()` | Set image cleanup rules |
| `describe_image_scan_findings()` | Get scan results for an image |
| `list_images()` | List images (filter by tagged/untagged) |
| `get_lifecycle_policy()` | Get current lifecycle policy |
### ECR Scan Findings Structure
```python
{
"findingSeverityCounts": {"CRITICAL": 2, "HIGH": 5},
"findings": [
{"name": "CVE-2024-xxxx", "severity": "CRITICAL", "uri": "..."}
]
}
```
## References
- Trivy docs: https://aquasecurity.github.io/trivy/
- Cosign docs: https://docs.sigstore.dev/cosign/overview/
- Syft docs: https://github.com/anchore/syft
- ECR API: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecr.html