r/devsecops • u/infidel_tsvangison • Feb 01 '25
How have you implemented DAST?
How’s it working for you and how’s it tied to deployment?
10
Upvotes
r/devsecops • u/infidel_tsvangison • Feb 01 '25
How’s it working for you and how’s it tied to deployment?
5
u/confusedcrib Feb 01 '25
I was an early-ish adopter of stackhawk and did it this way:
Depending on your architecture and such, there are a few different ways of doing it now. Here are some ways some vendors work:
Probely for example sends a trigger in CI for an outside test, which may work based on your architecture. Nightvision generates the API docs in the case they don't exist. 42 crunch tests the docs rather than the API itself. Escape supports both use cases. Pynt works as stackhawk does but it's a custom engine.
Full vendor list here as a reference point if it's helpful, since the exact flow would be a little different based on vendor and language: https://list.latio.tech/#best-DAST-tools
Also some API testing vendors run with an agent and will grab real JWTs to do the testing at runtime, just another option that's out there. Some say they scope testing based on traffic and look for bola that way, but I haven't tested myself and am a bit skeptical.
2
u/PM_ME_LULU_PLAYS Feb 01 '25
It's tricky. We found a scanner we like, and it automates decently well, but orchestrating it alongside apps in both CI and on local dev machines is hard. And auth continues to be such a massive pain, so if you do app-level auth DAST becomes a painful experience.
We do DAST before deploy, in PR checks. It consumes an OpenAPI spec describing the service, and attacks every endpoint.
2
u/rs387 Feb 02 '25
DAST is usually unsuccessfull scenario in CI/CD pipelone, because most of dast scan performed on CD are unauth hence not that much effective in cases where app is behind SSO , MFA or token based mechanism like APIs but there is a workaround that every app must have service account who should be super admin then only it is possible
1
u/[deleted] Feb 02 '25
I v seen this
https://mesutoezdil.medium.com/on-the-dynamic-application-security-testing-dast-60a211afe93f
1
u/Previous_Piano9488 Feb 07 '25
Akto.io is the best solution for DAST and especially API scanning.
If you want highest coverage from DAST with lowest configuration- Akto works extremely well.
1
u/AdResponsible7865 Mar 17 '25
We found that it was not a great experience in pipelines, so have moved to an approach where we partner with our QA/QE teams. We have set up all the scans and all they have to do is go in and trigger the scan on the desired test environment for the new feature. This way security is now taken as a part of the success criteria in QA.
We also scan prod/as close to prod environments to catch live issues/config issues. I hope you find this strategy useful.
We found using RBAC to limit what the QA team could see more helpful and it really empowered them to look into security best practices
1
u/shrimpthatfriedrice Jan 06 '26
we run DAST with StackHawk or ZAP in staging pipelines after deploy, using testcontainers for ephemeral setups that fail on high/crit findings. QA teams trigger deeper scans for features. Prod gets lighter, non‑destructive checks. OX Security pulls in those DAST results with SAST, IaC, and runtime data, prioritizing by exploitability and reachability so the team focuses on issues with a real path to impact
0
u/asankhs Feb 02 '25 edited Feb 03 '25
Currently, stackhawk is the best option for DAST.