QuestionQ24

VerifiedDevSecOps Pipeline-Build and Test Stage

James Harden works as a senior DevSecOps engineer at an IT company based in Oakland, California. To identify vulnerabilities and evaluate attack vectors that could compromise web applications, he wants to integrate Burp Suite with Jenkins. He downloaded the Burp Suite Jenkins plugin, uploaded it, and successfully completed the integration.

After completing the integration, he wants to scan a web application using Burp Suite. To do this, he:

  • Navigated to the Jenkins dashboard
  • Opened an existing project and clicked Configure
  • Went to the Build tab and selected Execute shell from Add build step

Which of the following commands should James enter under the Execute shell field?

Explanation

When configuring a Jenkins build step to run a Burp Suite scan via the Burp Suite Jenkins plugin, the target URL is defined by echoing the BURP_SCAN_URL environment variable within the Execute shell field, e.g., 'echo BURP_SCAN_URL = http://target-website.com'. This sets/outputs the scan target so the plugin can pick it up and initiate the scan against the specified web application during the Jenkins build process. The other commands are unrelated to defining this variable: 'sudo' elevates privileges for command execution, 'grep' searches for text patterns, and 'cat' displays file contents — none of these are used to assign or declare the scan URL variable in this context.

Community Discussion

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