Skip to content

feat:Add DAST audit command and related functionality - #1078

Open
ankit2995 wants to merge 1 commit into
fortify:feat/v3.x/aviator/26.4from
ankit2995:ankit/dast-audit
Open

feat:Add DAST audit command and related functionality#1078
ankit2995 wants to merge 1 commit into
fortify:feat/v3.x/aviator/26.4from
ankit2995:ankit/dast-audit

Conversation

@ankit2995

@ankit2995 ankit2995 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Note: This PR will be merged into feat/v3.x/aviator/26.4

This PR adds DAST auditing support to FCLI, allowing teams to audit WebInspect findings with Fortify Aviator and upload the updated DAST FPR to SSC.

What changed

  • Added a new DAST audit command:
    • fcli aviator ssc audit-dast
  • Downloads the latest DAST FPR from an SSC application version.
  • Parses eligible WebInspect findings and submits them to Fortify Aviator.
  • Writes audit decisions back to audit.xml.
  • Uploads the updated FPR through the SSC artifact API.
  • Returns the newly created SSC artifact ID.
  • Added configurable DAST tag mapping.
  • Added resilient gRPC streaming with automatic reconnection.
  • Requeues only unfinished findings after a connection failure.
  • Added tests for parsing, request/response mapping, FPR updates, output, and retries.

Behavior

  • Eligible DAST findings are streamed to Fortify Aviator for auditing.
  • Completed findings are retained if the stream reconnects.
  • Skipped and failed findings are reported separately.
  • The output includes:
    • application version ID
    • application and version names
    • uploaded artifact ID
    • audit status

Command

fcli aviator ssc audit-dast  --av <ssc-application>:<version> --app <aviator-application>

A custom tag mapping can be supplied with:

fcli aviator ssc audit-dast --av <ssc-application>:<version> --app <aviator-application> --tag-mapping <file>

Example Response

{
  "id": "42",
  "applicationName": "WebGoat",
  "versionName": "1.0",
  "artifactId": "2786",
  "operation": {
    "audit": {
      "submitted": 6,
      "succeeded": 4,
      "skipped": 2,
      "failed": 0
    }
  },
  "__action__": "PARTIALLY_AUDITED"
}

- Implemented AviatorSSCDastAuditCommand for auditing DAST findings in SSC applications.
- Created DastAuditRequestMapper and DastAuditResponseMapper for handling DAST audit requests and responses.
- Added unit tests for DAST audit request and response mappers, stream processor, and command.
- Introduced AviatorSSCFprTransferHelper for managing DAST FPR downloads and uploads.
- Updated AviatorSSCAuditHelper to include DAST-specific audit statistics.
- Enhanced AviatorSSCCommands to include the new DAST audit command.
- Updated internationalization properties for DAST audit command messages.
@ankit2995 ankit2995 changed the title Added DAST audit command and related functionality feat:Add DAST audit command and related functionality Aug 21, 2026
@ankit2995
ankit2995 marked this pull request as ready for review August 21, 2026 10:18
@ankit2995
ankit2995 requested a review from rsenden August 21, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants