300-910 · Question #48
A security team is running vulnerability scans against a CI/CD pipeline. The reports show that RDBMS secrets were found hardcoded in Ansible scripts. The RDBMS resides in the internal network that is
The correct answer is C. The internal network is at risk of being compromised.. If an attacker gains access to Ansible scripts containing hardcoded RDBMS secrets, the internal network where the RDBMS resides is immediately at risk of compromise.
Question
Exhibit
Options
- AThe Automation server is at risk of being compromised.
- BThe Ansible scripts run through encrypted SSH connections.
- CThe internal network is at risk of being compromised.
- DThe entire CI/CD-related infrastructure is at risk.
How the community answered
(43 responses)- A19% (8)
- B12% (5)
- C65% (28)
- D5% (2)
Why each option
If an attacker gains access to Ansible scripts containing hardcoded RDBMS secrets, the internal network where the RDBMS resides is immediately at risk of compromise.
The question implies the scripts (and thus the secrets) have *already* been accessed by the attacker; the immediate risk is what the attacker can do *with* those secrets, not a compromise of the automation server itself.
While Ansible uses encrypted SSH connections, this only protects data in transit. It does not mitigate the risk of hardcoded secrets being exposed at rest if the scripts themselves are compromised.
Hardcoded RDBMS secrets provide an attacker with direct credentials to the database. Since the RDBMS is in the internal network and accessible via a jump server from the public network, these compromised secrets allow the attacker to bypass access controls and potentially gain unauthorized access to the internal database, leading to a compromise of that network segment.
While an RDBMS compromise can have broader implications, 'the entire CI/CD-related infrastructure' is too broad; the immediate and specific risk exposure described by hardcoded RDBMS secrets is primarily to the database and the internal network it resides within.
Concept tested: Security risks of hardcoded secrets
Source: https://owasp.org/www-project-top-ten/2017/A2_Broken_Authentication.html
Topics
Community Discussion
No community discussion yet for this question.
