Devops (DVO3)
Aryan can exploit an internal system or service, because it, its infrastructure, or other components were not properly hardened, or the configuration was not maintained over time
This card addresses the risk of insufficiently hardened internal systems and services, or configurations that degrade over time, creating exploitable weaknesses in the development and deployment infrastructure.
Scenario: Aryan's Exploitation of a Poorly Hardened Internal Service
Consider a scenario where Aryan exploits an internal system or service that was not properly hardened from the start, or whose security configuration has degraded over time. This vulnerability arises from:
- Insufficient Initial Hardening: The system was deployed with default configurations, unnecessary services enabled, or overly permissive settings.
- Configuration Drift: Security settings that were once appropriate have drifted over time due to ad-hoc changes, updates, or lack of maintenance.
Example
Aryan discovers that an internal service used for artifact storage still runs with its default administrative credentials and has several unnecessary network services exposed. The service was initially set up quickly to unblock a team and was never revisited. Over time, patches were skipped and the configuration was loosened to work around integration issues. Aryan leverages the default credentials to gain administrative access, then uses the exposed services to pivot to other internal systems.
Threat Modeling
STRIDE
This scenario maps primarily to STRIDE: Tampering and Elevation of Privilege.
Tampering applies because poorly hardened systems allow attackers to modify configurations, data, or behavior of the system in unauthorized ways.
Elevation of Privilege fits because Aryan exploits weak configurations, such as default credentials or unnecessary services, to gain a level of access he should not have.
What can go wrong?
Insufficiently hardened systems create a broad attack surface within the internal infrastructure. This can manifest in various forms, including but not limited to:
- Exploitation of default credentials or known default configurations
- Unauthorized access through unnecessary exposed services or ports
- Privilege escalation through misconfigured access controls
- Lateral movement to other systems after compromising a poorly hardened service
- Persistent access due to unpatched vulnerabilities in internal tools
What are we going to do about it?
- Check if your organization has hardening baselines or guidelines for internal systems, and follow them. If none exist, start by changing default credentials, disabling unnecessary services, and locking down network access.
- Define infrastructure and system configurations as code so they are version-controlled, reviewable, and reproducible. This also makes configuration drift easier to spot and fix.
- Disable or remove unnecessary services, ports, and features from internal systems you manage.
- Make sure internal services require proper authentication and are not accessible with default or shared credentials.
- Don't forget to patch internal systems and DevOps infrastructure - not just the application itself.
- Give service accounts only the permissions they actually need.
For detailed advice on how to mitigate threats related to the card, see the OWASP SAMM and OWASP DSOMM IDs in the table below and correlate these with the IDs in the OWASP SAMM and OWASP DSOMM documentation.
Reading the mappings
Mappings use identifiers from OWASP SAMM and OWASP DSOMM.
SAMM identifiers specify a Business Function, Security Practice and Stream. For example, O-EM-A breaks down as Operations - Environment Management - Stream AĀ (Configuration Hardening).
DSOMM identifiers specify a Dimension and Sub-Dimension. For example, I-IH breaks down as Implementation - Infrastructure Hardening, and I-AH as Implementation - Application Hardening. A Sub-Dimension groups multiple related activities, and is used here because the activities as a group correspond to the card's scope.
Mappings
STRIDE: Tampering,Elevation of Privilege
OWASP SAMM: O-EM-A
OWASP DSOMM: I-IH,I-AH
No attacks registered!