feat: NS8 security audit harness skills - #4
Draft
gsanchietti wants to merge 2 commits into
Draft
Conversation
Design for a three-stage skill harness (threat-model -> audit -> verify) that audits ns8-core and ns8 modules for NS8-specific security defects and validates findings against a live cluster node. Assisted-by: Claude Code:claude-fable-5
Three skills forming a defensive-security pipeline for NethServer 8: - nethserver-threat-model: map attack surface (actions, api-moduled handlers, routes/ports, Redis privilege, secret flows) -> THREAT_MODEL.md - nethserver-security-audit: static audit across auth/authz, action input, Redis privilege, api-moduled injection, secrets, proxy trust; parallel per-domain checks + grep seeder -> FINDINGS.json/.md - nethserver-security-verify: confirm findings on a live leader with read-only api-cli/runagent/podman/curl probes -> VERIFIED.md Works on both ns8-core and ns8-<app> modules. Container hardening is delegated to nethserver-containerfile. Assisted-by: Claude Code:claude-fable-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a three-stage defensive-security skill harness for NethServer 8, alongside the existing dev-workflow skills. Audits
ns8-coreor anyns8-<app>module for NS8-specific security defects, then validates findings against a live cluster node.Pipeline (
threat-model → audit → verify):nethserver-threat-model— maps the attack surface (actions, api-moduled handlers, exposed routes/ports, privileged Redis usage, secret flows, trust boundaries) →THREAT_MODEL.md.nethserver-security-audit— static audit across six NS8 domains (auth/authz, action & event input, Redis privilege boundary, api-moduled handler injection, secrets, proxy/X-Forwarded-For trust). Parallel per-domain checks + deterministicscan-antipatterns.shrecall floor →FINDINGS.json+FINDINGS.md.nethserver-security-verify— confirms each finding against a live NS8 leader with read-onlyapi-cli/runagent/podman/curlprobes →VERIFIED.md. Requests live-node access up front; degrades to static reasoning without it. No state changes unless explicitly authorized.Container-image hardening is delegated to the existing
nethserver-containerfile. Live probes reuse thenethserver8skill safety rules.Design spec included at
docs/specs/2026-07-10-ns8-security-audit-harness-design.md.Related issue
None yet — draft, assigned per the no-issue draft convention.
How to test
Static (no live node needed):
Confirm it surfaces (with correct file:line)
SetTrustedProxies, authzfilepath.Match,Method == "GET"bypass, emptyAMLD_JWT_SECRET, and everyredis_connect(privileged=True)site, while excluding vendored/build dirs.End-to-end: run
/nethserver-threat-model→/nethserver-security-audit→/nethserver-security-verifyagainst a test NS8 checkout and a test/staging leader node.Dependencies
None.