DAST DNS and DMARC checks call dig, which the agent image does not contain #318

Open
opened 2026-09-21 17:08:45 +00:00 by sharang · 2 comments
Owner

Part of #309.

compliance-dast/src/tools/dns_checker.rs and dmarc_checker.rs run dig. Neither the current agent image nor the #307 image has it (bind9-dnsutils was never installed), so both checks fail without saying so whenever DAST runs.

Fix: use DNS lookups inside the process (e.g. hickory-resolver, also for DNSSEC and TXT/DMARC) instead of shelling out, so neither the agent image nor a Werkbank runner needs the tool. Report a failed lookup as a stage error, not as "no findings".

DAST is off in production (source_only), so this belongs with the R1 DAST work.

Part of #309. `compliance-dast/src/tools/dns_checker.rs` and `dmarc_checker.rs` run `dig`. Neither the current agent image nor the #307 image has it (bind9-dnsutils was never installed), so both checks fail without saying so whenever DAST runs. **Fix:** use DNS lookups inside the process (e.g. `hickory-resolver`, also for DNSSEC and TXT/DMARC) instead of shelling out, so neither the agent image nor a Werkbank runner needs the tool. Report a failed lookup as a stage error, not as "no findings". DAST is off in production (`source_only`), so this belongs with the R1 DAST work.
sharang added this to the R1 · Dynamic & OT depth milestone 2026-09-21 17:08:45 +00:00
sharang added the bug label 2026-09-21 17:08:45 +00:00
Author
Owner

Part of the DAST dogfooding Phase 1, together with #999, #1000, #997 and #998.

Part of the DAST dogfooding Phase 1, together with #999, #1000, #997 and #998.
Author
Owner

From #998 (closed): every DAST scan now runs the fixed header, CSP, cookie and TLS checks (compliance_dast::checks::run_checks, #1009). The DNS and DMARC checks (tools/dns_checker.rs, tools/dmarc_checker.rs) are left out until this issue lands. Once it does, they can be added to run_checks.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

From #998 (closed): every DAST scan now runs the fixed header, CSP, cookie and TLS checks (`compliance_dast::checks::run_checks`, #1009). The DNS and DMARC checks (`tools/dns_checker.rs`, `tools/dmarc_checker.rs`) are left out until this issue lands. Once it does, they can be added to `run_checks`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#318