mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-02 08:57:48 +00:00
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
1.8 KiB
1.8 KiB
API Reference: Auditing Terraform Infrastructure for Security
Checkov CLI
# Scan directory
checkov -d ./terraform/ --framework terraform --output json
# Scan plan file
terraform plan -out=tfplan && terraform show -json tfplan > tfplan.json
checkov -f tfplan.json --framework terraform_plan
# Skip specific checks
checkov -d ./terraform/ --skip-check CKV_AWS_145
# List all checks
checkov --list --framework terraform | grep CKV_AWS
tfsec CLI
# Scan with minimum severity
tfsec ./terraform/ --minimum-severity HIGH --format json
# Generate SARIF for GitHub
tfsec ./terraform/ --format sarif > tfsec.sarif
Checkov Python API
from checkov.runner_registry import RunnerRegistry
from checkov.terraform.runner import Runner
runner = Runner()
report = runner.run(root_folder="./terraform/")
for check in report.failed_checks:
print(check.check_id, check.resource, check.file_path)
Common CKV Check IDs
| Check ID | Description |
|---|---|
| CKV_AWS_18 | S3 access logging |
| CKV_AWS_19 | S3 server-side encryption |
| CKV_AWS_20 | S3 Block Public Access |
| CKV_AWS_24 | Security group allows SSH from 0.0.0.0/0 |
| CKV_AWS_1 | IAM policy with wildcard actions |
| CKV_AWS_145 | RDS encryption |
| CKV_AWS_41 | Secrets in Lambda environment variables |
OPA/Conftest
# Evaluate plan against Rego policies
conftest test tfplan.json --policy ./policy/ --output json
package terraform.aws.s3
deny[msg] {
resource := input.resource.aws_s3_bucket[name]
not resource.server_side_encryption_configuration
msg := sprintf("S3 bucket '%s' missing encryption", [name])
}
References
- Checkov: https://www.checkov.io/
- tfsec: https://aquasecurity.github.io/tfsec/
- Terrascan: https://runterrascan.io/
- Conftest: https://www.conftest.dev/