Commit Graph
26 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 56fa334b75 feat(ios): Carthage pins in the SBOM, iOS and Swift lifecycle findings
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 10m8s
iOS readiness, story 1 (detection and SBOM). Syft already reads
Podfile.lock and Package.resolved (also inside the Xcode project); what
was missing:

- Carthage: Cartfile.resolved is read (sbom/carthage.rs). A github/git
  pin is the same repository at the same tag as its Swift package, so it
  gets the purl OSV keys Swift advisories by
  (pkg:swift/github.com/grpc/grpc-swift@1.0.0) and is matched; a
  repository also pinned through SwiftPM is listed once. A binary
  framework is listed without a purl, and the coverage note names its
  Cartfile.resolved, since no advisory database covers it. A Cartfile
  without Cartfile.resolved is now the gap (was: every Cartfile).
- build-lifecycle reads every app project.pbxproj (not Pods or Carthage
  checkouts) at its lowest setting:
  - ios-deployment-target-end-of-support (Low): IPHONEOS_DEPLOYMENT_TARGET
    below 15 lets the app install on iOS releases without security updates
    (iOS 15 got 15.8.8 in May 2026; 14 and 12 are end of life).
  - swift-version-end-of-support (Medium): SWIFT_VERSION below 4, which no
    Xcode since 10.2 builds.
  Both map to cra-ai-22; the binding now covers swift/objc. The Xcode
  version is not judged: a repository does not record it.
- Classification: an .xcworkspace or a Cartfile also marks an iOS app.
- Nightly fixture mobile/ios-carthage-legacy (Swift 3, iOS 10, Carthage
  with Alamofire, grpc-swift and a binary framework): baseline holds the
  four grpc-swift advisories and both lifecycle findings.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-06 00:52:02 +02:00
sharang 04b4f32807 feat(mobile): legacy Android and Unity builds flagged, not resolved; Android found everywhere (#466)
CI / Check (push) Skipped
CI / Deploy Docs (push) Successful in 1m12s
CI / Detect Changes (push) Successful in 3s
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 5m0s
CI / Deploy Agent (push) Successful in 6m27s
2026-10-05 21:17:52 +00:00
sharangandClaude Opus 5.5 8926255d6f feat(dotnet): .NET detection, NuGet SBOM, C# rules and config checks (#447)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 4m42s
CI / Deploy Docs (push) Successful in 1m10s
Minimal .NET/C# support for epic #445 (N1-N5): detection of solutions/projects and target frameworks, NuGet SBOM without build or restore (pkg:nuget purls for OSV, unresolved-dependency warning, end-of-support frameworks), own C# semgrep rule pack, .NET configuration and key-file checks, .NET build output and restored packages not counted as own code. Fixture fixtures/dotnet/framework48, docs .NET-Projekte (DE/EN).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-05 14:38:13 +00:00
sharang 04d0ad5113 feat(sbom): direct dependencies of Gradle builds without a lockfile (#446)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m12s
CI / Deploy Dashboard (push) Successful in 5m44s
CI / Deploy MCP (push) Successful in 3m50s
CI / Deploy Agent (push) Canceled after 0s
2026-10-05 13:39:02 +00:00
sharang a9ca31d60c feat(sast): Android and iOS app analysis with mobsfscan (#442)
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Canceled after 0s
CI / Deploy Docs (push) Canceled after 0s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Successful in 9m28s
2026-10-05 13:38:45 +00:00
sharangandClaude Opus 5.5 a66b7a5991 fix(sast): run only our own semgrep rules, no registry rules or metrics (#441)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 4m35s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-05 13:03:43 +00:00
sharang 9b85d5148e fix(sbom): no clean-looking result for mobile apps without readable lockfiles (#440)
CI / Detect Changes (push) Successful in 3s
CI / Deploy MCP (push) Skipped
CI / Check (push) Skipped
CI / Deploy Docs (push) Successful in 1m15s
CI / Deploy Dashboard (push) Successful in 6m20s
CI / Deploy Agent (push) Successful in 7m53s
2026-10-01 18:45:27 +00:00
sharang a3cfaf422f fix(sast): an upper-case format macro is not a non-literal format (#380) (#395)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 4m3s
2026-09-25 11:27:23 +00:00
sharang aee2f5b9eb feat(sast): hard-coded credentials in #define macros (#374) (#392)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 5m54s
2026-09-25 11:16:32 +00:00
sharang 827b7196b5 feat(sbom): FreeRTOS+TCP and FatFs in firmware trees, matched in NVD (#375) (#393)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Canceled after 0s
2026-09-25 11:07:07 +00:00
sharang 9a0d690036 feat(sast): the CRA C rules also run on C++ (#373) (#391)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 7m13s
2026-09-25 11:01:43 +00:00
sharang ff62bf4210 feat(sbom): CVEs for FreeRTOS, lwIP, Mbed TLS and wolfSSL in firmware trees (#351)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 5m19s
2026-09-23 15:13:09 +00:00
sharang dae80043e6 fix(firmware): produce the firmware SBOM when detection finds firmware (#341)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 13s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 7m35s
2026-09-23 13:37:12 +00:00
sharang 0e0dfadf56 feat(ingest): unpack tar and tar.gz source archives (#335) (#340)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Dashboard (push) Successful in 4m33s
CI / Deploy Agent (push) Successful in 6m4s
CI / Deploy MCP (push) Successful in 2m10s
2026-09-23 13:08:06 +00:00
sharang fbf3a7cf29 feat(sast): C/C++ SAST for microcontroller firmware (#334) (#339)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 6m55s
2026-09-23 13:07:50 +00:00
sharang c6d2d07999 fix(sbom): stop resolving tenant manifests in shared deployments (#330) (#333)
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 57s
CI / Check (push) Skipped
CI / Deploy MCP (push) Successful in 3m41s
CI / Deploy Dashboard (push) Successful in 5m26s
CI / Deploy Agent (push) Successful in 6m48s
2026-09-23 08:59:35 +00:00
sharang 44a48957c1 feat(ci): JavaScript/TypeScript and Python fixtures for the nightly (#310) (#331)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 3m53s
2026-09-23 08:15:00 +00:00
sharang fe2414a3c0 feat(scans): scan uploaded source archives like repositories (#325) (#329)
CI / Deploy Agent (push) Successful in 3m53s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
2026-09-23 07:22:05 +00:00
sharang f90bfcc5c6 fix(scans): stop offering scans nothing runs, and record them (#319) (#328)
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 53s
CI / Check (push) Skipped
CI / Deploy MCP (push) Successful in 3m39s
CI / Deploy Dashboard (push) Successful in 5m21s
CI / Deploy Agent (push) Successful in 6m43s
2026-09-22 21:05:31 +00:00
sharang 27e8c866ba fix(sbom): firmware SBOMs list what the manifests declare (#317) (#327)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 4m31s
CI / Deploy Dashboard (push) Successful in 2m47s
CI / Deploy MCP (push) Successful in 1m50s
2026-09-22 20:34:06 +00:00
sharang 42c7b09151 feat(ci): firmware and RTOS fixtures for the nightly scan regression (#313) (#326)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 3m59s
2026-09-22 05:36:10 +00:00
sharang d4cbdc822a feat(ci): PLC fixtures for the nightly scan regression (#314) (#324)
CI / Check (push) Skipped
CI / Deploy Agent (push) Successful in 7m50s
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
2026-09-21 21:48:42 +00:00
sharang af9c640bc1 feat(ci): nightly scan regression against the built image (#188) (#323)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy MCP (push) Successful in 3m35s
CI / Deploy Dashboard (push) Successful in 5m18s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 7m0s
2026-09-21 21:21:20 +00:00
sharang bc4553d576 chore: replace every remaining "tramiton" with Firmwerk (#300)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Successful in 5m10s
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Agent (push) Successful in 6m50s
CI / Deploy MCP (push) Successful in 2m25s
2026-09-21 11:38:35 +00:00
sharangandSharang Parnerkar d9850bef90 feat(demo): seed curated targets from the agent, source-only mode (#251)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Agent (push) Successful in 6m58s
CI / Deploy Docs (push) Successful in 1m8s
CI / Deploy MCP (push) Successful in 3m53s
CI / Deploy Dashboard (push) Successful in 5m34s
Demonstration plan, phase D3 (agent side). Two things blocked a self-serve demo: a fresh trial tenant landed on an empty targets page, and staging tried to run DAST, pentest, the ICS probe and the soft-PLC runtime that are not deployed there, so those stages surfaced as tool errors.

## Seeding

| Request | Meaning |
|---|---|
| `GET /api/v1/targets/demo-seed` | what would be created: `key`, display `name`, `kind`, `description`, `source_only` |
| `POST /api/v1/targets/demo-seed` | body `{"names":[…],"rescan":false}`, empty `names` seeds all; `202` with one row per target, `status` = `queued` \| `exists` \| `failed` |
| `POST /api/v1/platform/tenants/demo/reset` | now takes `{"seed": true}` and reseeds with a service token, for the nightly sales-demo reset |

Seeding runs through a new shared target lifecycle (`compliance-agent/src/targets.rs`: create → store upload → attach → detect), which the onboarding handlers now call as well — so a seeded target is an ordinary target with the same records and the same `target.added` usage events, and there is no HTTP self-call. It is idempotent by display name: the seeder owns the `Demo · ` prefix, so a second call finds its own targets. `scan_id` is always `null` in the response because the scan run is created inside the background pipeline.

## Source-only set

The manifest is now source-only: `plc-pump-station`, `plc-conveyor-line`, `git-cra-vuln-demo`, `firmware-zephyr-example`. The Juice Shop target needed a running instance for DAST and pentest and is removed, along with `DEMO_WEB_URL`. Everything ships inside the agent binary (manifest plus the PLC upload fixtures), so a deployed agent seeds without the repo.

## `PW_FEATURES=source_only`

A static-analysis-only deployment: DAST, the ICS probe and the ephemeral PLC runtime record a `skipped_stages` entry on the scan run (`{stage, status:"skipped", reason:"feature disabled"}`) instead of failing; starting a DAST run or a pentest session answers `409`; the flag list is published on the public `/api/v1/platform/version` handshake so the dashboard reads the set the agent enforces rather than its own copy of the env. Unknown flags are kept and reported, so a dashboard-only flag needs no agent release.

Docs and the ops script are updated: `scripts/seed-demo-targets.sh --api` hands the job to the agent, the client-side path stays for `--reset` and for agents older than the checkout.

Verified locally: `cargo fmt --all --check`, `cargo clippy -p compliance-agent -- -D warnings`, `cargo clippy -p compliance-core -- -D warnings`, `cargo test -p compliance-core -p compliance-agent -p werkbank-exec -p control-map --lib` (414 tests). `compliance-agent/tests/demo_seed.rs` needs Mongo and runs outside CI like the other integration tests.

Pairs with the dashboard's "Add demo targets" button and with orca-platform setting `PW_FEATURES=source_only` on the staging agent.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com>
Reviewed-on: #251
2026-09-14 08:24:33 +00:00
sharang 8dcdad9fe7 feat(fixtures): curated demo targets + seed script + golden PLC baselines (#187) (#232)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Failing after 18s
CI / Deploy Docs (push) Successful in 1m11s
2026-08-31 15:58:16 +00:00