Commit 22303ee
fix(security): comprehensive security audit remediation (22 findings, 37 files) (#684)
* fix(security): eliminate CI injection vectors and pin actions (#1)
- Move all github.event.* expressions from run: to env: blocks (CWE-94)
- spell-check.yml: changed_files via env var
- markdown-link-check.yml: changed_files via temp file input
- ai-spec-drafter.yml: issue.number via env var
- ai-test-generator.yml: pull_request.number via env var
- ai-release-notes.yml: release.tag_name via env var
- sbom.yml: release.tag_name via env var
- Redact secret scanner output to prevent secret leaks to CI logs (CWE-200)
- SHA-pin dtolnay/rust-toolchain (the only unpinned action) (CWE-829)
- Add missing permissions: block to markdown-link-check.yml (CWE-250)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix(security): supply chain hardening — dep confusion, lockfiles, Dockerfile digest (#2)
- Fix dependency confusion: replace agent-primitives==0.1.0 with local
file references in scak and iatp requirements.txt (CWE-427)
- Pin root Dockerfile base image to SHA digest (CWE-829)
- Generate missing package-lock.json for 4 npm packages (CWE-829):
mcp-proxy, api, chrome extension, mastra-agentmesh
- Remove unsafe npm ci || npm install fallback in ESRP pipeline (CWE-829)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix(security): Docker/infra hardening — CORS, Grafana, .dockerignore, CODEOWNERS (#3)
- Replace hardcoded Grafana admin passwords with env var refs in 7
docker-compose files (CWE-798)
- Replace wildcard CORS allow_origins=[*] with env-driven origins
in 6 production services (CWE-942)
- Add secret exclusion patterns (.env, *.key, *.pem, *.p12) to root
and caas .dockerignore files (CWE-532)
- Add security contact, supported versions, and 90-day disclosure
policy to SECURITY.md (CWE-693)
- Add CODEOWNERS rules for scripts/, Dockerfile, docker-compose*,
.dockerignore, .clusterfuzzlite/ (CWE-862)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix(security): code quality — XSS, Rust panics, example warnings (#4)
- Replace innerHTML with safe DOM APIs (textContent, createElement)
in PolicyEditorPanel.ts and MetricsDashboardPanel.ts (CWE-79)
- Add HTML entity escaping for violation names in metrics dashboard
- Replace .unwrap() with .expect() on production RwLock/Mutex calls
in policy.rs for clearer panic messages (CWE-252)
- Add INTENTIONALLY INSECURE warnings to test fixture code in
github-reviewer example to prevent copy-paste propagation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent e2592fc commit 22303ee
File tree
37 files changed
+20870
-43
lines changed- .github
- workflows
- packages
- agent-hypervisor
- examples/docker-compose/app
- src/hypervisor/api
- agent-mesh
- examples/docker-compose
- packages/mcp-proxy
- sdks/rust/agentmesh/src
- services/api
- agent-os-vscode/src/webviews
- metricsDashboard
- policyEditor
- agent-os
- examples
- carbon-auditor
- defi-sentinel
- github-reviewer
- grid-balancing
- pharma-compliance
- extensions/chrome
- modules
- caas
- iatp
- iatp
- observability
- scak
- services/cloud-board/api
- src/agent_os/server
- agent-sre
- examples/docker-compose
- src/agent_sre/api
- agentmesh-integrations/mastra-agentmesh
- pipelines
37 files changed
+20870
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | | - | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 36 | + | |
31 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments