Alpine Linux Package Manager Execution
No violationsstackroxlowruntimeAlert when the Alpine Linux package manager (apk) is executed at runtime
- Rationale
- Use of package managers at runtime indicates that new software may be being introduced into containers while they are running.
- Remediation
- Run `apk --purge del apk-tools` in the image build for production containers. Change applications to no longer use package managers at runtime, if applicable.
CategoriesPackage Management
Compliance mappingsView coverage →
- NIST SP 800-53 rev. 5
- CM-7
- PCI DSS 4.0
- 2.2.4
- SOC 2 2017 TSC
- CC6.8
Generated artifacts
1 of 5 targets supportedalpine-linux-package-manager-execution.yaml
- rule: alpine-linux-package-manager-execution
desc: Alert when the Alpine Linux package manager (apk) is executed at runtime
condition: proc.name in ("apk")
output: Process %proc.name executed by user %user.name (uid=%user.uid) in container %container.id image=%container.image.repository (policy=Alpine Linux Package Manager Execution)
priority: NOTICE
source: syscall
tags:
- stackrox-import
- policy
IR (canonical)
{
"id": "d63564bd-c184-40bc-9f30-39711e010b82",
"name": "Alpine Linux Package Manager Execution",
"description": "Alert when the Alpine Linux package manager (apk) is executed at runtime",
"rationale": "Use of package managers at runtime indicates that new software may be being introduced into containers while they are running.",
"remediation": "Run `apk --purge del apk-tools` in the image build for production containers. Change applications to no longer use package managers at runtime, if applicable.",
"severity": "low",
"categories": [
"Package Management"
],
"lifecycle": [
"runtime"
],
"eventSource": "deployment",
"scope": [],
"exclusions": [],
"enforcement": {
"failBuild": false
},
"expression": {
"op": "criterion",
"field": "process-name",
"values": [
"apk"
],
"valuesOp": "or",
"negate": false
},
"disabled": false
}Original StackRox JSON
{
"id": "d63564bd-c184-40bc-9f30-39711e010b82",
"name": "Alpine Linux Package Manager Execution",
"description": "Alert when the Alpine Linux package manager (apk) is executed at runtime",
"rationale": "Use of package managers at runtime indicates that new software may be being introduced into containers while they are running.",
"remediation": "Run `apk --purge del apk-tools` in the image build for production containers. Change applications to no longer use package managers at runtime, if applicable.",
"disabled": false,
"categories": [
"Package Management"
],
"lifecycleStages": [
"RUNTIME"
],
"eventSource": "DEPLOYMENT_EVENT",
"exclusions": [],
"scope": [],
"severity": "LOW_SEVERITY",
"enforcementActions": [],
"policySections": [
{
"sectionName": "",
"policyGroups": [
{
"fieldName": "Process Name",
"booleanOperator": "OR",
"negate": false,
"values": [
{
"value": "apk"
}
]
}
]
}
],
"notifiers": [],
"lastUpdated": null,
"SORTName": "",
"SORTLifecycleStage": "",
"SORTEnforcement": false,
"policyVersion": "1.1",
"mitreAttackVectors": [
{
"tactic": "TA0011",
"techniques": [
"T1105"
]
}
],
"criteriaLocked": true,
"mitreVectorsLocked": true,
"isDefault": true,
"source": "IMPERATIVE"
}