QuestionQ29

VerifiedDevSecOps Pipeline-Build and Test Stage

Kevin Williamson has worked as a DevSecOps engineer at a multinational company for the past five years. In January 2017, his organization migrated all of its applications and data from on-premises infrastructure to the AWS cloud, taking advantage of AWS's strong security features and cost-effective services. The organization now uses AWS DevOps services to build software products securely and rapidly.

To detect errors in the code and catch bugs in the application code, Kevin integrated PHPStan into the AWS pipeline for static code analysis.

What happens if security issues are detected in the application code?

Explanation

In this AWS DevSecOps pipeline pattern, PHPStan performs static analysis on the application source code during the build stage. When it detects security issues or bugs, an AWS Lambda function is invoked to parse the PHPStan scan output and transform the findings into the AWS Security Finding Format (ASFF), then send/import those results into AWS Security Hub. This allows centralized aggregation, prioritization, and monitoring of security findings across the AWS environment. AWS Config, Elastic Beanstalk, and CloudFormation serve entirely different purposes (compliance auditing, application deployment, and infrastructure provisioning, respectively) and are not used to parse static analysis tool output for Security Hub ingestion.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!