Security testing identifies vulnerabilities in applications, infrastructure, and processes before attackers exploit them. Without it, organizations risk data breaches, compliance violations, and financial loss—like the 2017 Equifax breach (147M records exposed due to an unpatched Apache Struts vulnerability) or 2021 Log4j (CVE-2021-44228), where a simple logging flaw led to remote code execution (RCE) in thousands of systems. These methods (SAST, DAST, IAST, RASP) provide layered defense by catching flaws at different stages of the software development lifecycle (SDLC).
SAST (Static Application Security Testing): Analyzes source code, bytecode, or binaries without executing the program (e.g., during development). Finds flaws like SQL injection, hardcoded secrets, or buffer overflows. Tools: SonarQube, Checkmarx, Fortify. Standards: OWASP Top 10, CWE (Common Weakness Enumeration).
DAST (Dynamic Application Security Testing): Tests a running application (e.g., in staging/production) by simulating attacks (e.g., fuzzing, XSS, CSRF). Mimics a hacker’s perspective but misses code-level issues. Tools: OWASP ZAP, Burp Suite, Nessus. Standards: OWASP Testing Guide, NIST SP 800-115.
IAST (Interactive Application Security Testing): Combines SAST + DAST by instrumenting the runtime environment (e.g., via agents) to monitor code execution while the app runs. Catches vulnerabilities like insecure deserialization or race conditions. Tools: Contrast Security, HCL AppScan IAST. Requires app instrumentation (may impact performance).
RASP (Runtime Application Self-Protection): Embeds security into the app (e.g., via libraries or agents) to block attacks in real time (e.g., SQLi, RCE). Unlike WAFs (which protect at the network layer), RASP operates inside the app. Tools: Signal Sciences, Imperva RASP. Standards: MITRE ATT&CK (T1190 – Exploit Public-Facing App).
OWASP Top 10: A ranked list of critical web app risks (e.g., Broken Access Control, Cryptographic Failures). Used as a baseline for SAST/DAST tools. Updated every 3–4 years (latest: 2021).
CWE (Common Weakness Enumeration): A community-developed list of software weaknesses (e.g., CWE-89: SQL Injection, CWE-79: XSS). Used by SAST tools to classify vulnerabilities.
CVSS (Common Vulnerability Scoring System): Quantifies vulnerability severity (0–10 scale) based on exploitability, impact, and scope. Example: Log4j (CVE-2021-44228) scored 10.0 (Critical). Used in NIST NVD (National Vulnerability Database).
Shift Left: Integrating security early in the SDLC (e.g., SAST in CI/CD pipelines) to reduce cost and risk. Opposite of "bolt-on" security (e.g., DAST in production).
CI/CD Pipeline: Continuous Integration/Continuous Deployment – automates testing and deployment. Security tools (SAST/DAST) are often integrated here (e.g., GitHub Actions, Jenkins, GitLab CI).
False Positive vs. False Negative:
False Negative: Tool misses a real vulnerability (security risk). Goal: Balance precision (low false positives) and recall (low false negatives).
WAF (Web Application Firewall): Network-layer defense (e.g., AWS WAF, Cloudflare) that filters malicious HTTP traffic (e.g., SQLi, XSS). Not a replacement for SAST/DAST (only blocks known attack patterns).
MITRE ATT&CK: A framework of adversary tactics/techniques (e.g., T1190 – Exploit Public-Facing App). Used to map vulnerabilities to real-world attacks.
Align with compliance requirements (e.g., PCI DSS, GDPR, NIST SP 800-53).
Integrate SAST Early (Shift Left)
Triage results: Prioritize by CVSS score and business impact.
Test Dynamically (DAST in Staging)
Manual testing: Use Burp Suite for advanced attacks (e.g., CSRF, SSRF).
Enhance with IAST (Optional but Powerful)
Example: IAST detects a race condition that SAST/DAST missed.
Deploy RASP for Production Protection
Example: RASP blocks a SQLi attempt and logs the attacker’s IP for SOC analysis.
Continuous Monitoring & Feedback Loop
Answer: B) SonarQube (SAST tool for static code analysis). OWASP ZAP (DAST) and Burp Suite (DAST) test running apps, while RASP protects production.
During a penetration test, an ethical hacker discovers a reflected XSS vulnerability in a staging environment. Which testing method most likely found this?
Answer: B) DAST (tests running apps for input-based flaws like XSS). SAST would flag it in code, but DAST confirms exploitability.
A company deploys a new e-commerce app and wants real-time protection against SQL injection attacks. Which solution is most appropriate?
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.