Remote File Copy Binary Execution
No violationsstackroxmediumruntimeAlert on deployments that execute a remote file copy tool
- Rationale
- Remote copy tools can be used to exfiltrate data from a container
- Remediation
- Remove tools like scp, sshfs, ssh-copy-id, etc. from your image and redeploy it
CategoriesNetwork Tools
Compliance mappingsView coverage →
- DORA EU 2022/2554
- Art. 9.4(b)
- ISO/IEC 27001 2022
- A.8.20
- NIST SP 800-53 rev. 5
- CM-7
- PCI DSS 4.0
- 2.2.4
Generated artifacts
1 of 5 targets supportedremote-file-copy-binary-execution.yaml
- rule: remote-file-copy-binary-execution
desc: Alert on deployments that execute a remote file copy tool
condition: proc.name in ("scp|sshfs|ssh-copy-id|rsync")
output: Process %proc.name executed by user %user.name (uid=%user.uid) in container %container.id image=%container.image.repository (policy=Remote File Copy Binary Execution)
priority: WARNING
source: syscall
tags:
- stackrox-import
- policy
IR (canonical)
{
"id": "3e546913-de60-445c-a6d5-e70ac4ed4e98",
"name": "Remote File Copy Binary Execution",
"description": "Alert on deployments that execute a remote file copy tool",
"rationale": "Remote copy tools can be used to exfiltrate data from a container",
"remediation": "Remove tools like scp, sshfs, ssh-copy-id, etc. from your image and redeploy it",
"severity": "medium",
"categories": [
"Network Tools"
],
"lifecycle": [
"runtime"
],
"eventSource": "deployment",
"scope": [],
"exclusions": [
{
"name": "insights-operator",
"namespace": "openshift-insights"
}
],
"enforcement": {
"failBuild": false
},
"expression": {
"op": "criterion",
"field": "process-name",
"values": [
"scp|sshfs|ssh-copy-id|rsync"
],
"valuesOp": "or",
"negate": false
},
"disabled": false
}Original StackRox JSON
{
"id": "3e546913-de60-445c-a6d5-e70ac4ed4e98",
"name": "Remote File Copy Binary Execution",
"description": "Alert on deployments that execute a remote file copy tool",
"rationale": "Remote copy tools can be used to exfiltrate data from a container",
"remediation": "Remove tools like scp, sshfs, ssh-copy-id, etc. from your image and redeploy it",
"disabled": false,
"categories": [
"Network Tools"
],
"lifecycleStages": [
"RUNTIME"
],
"eventSource": "DEPLOYMENT_EVENT",
"exclusions": [
{
"name": "Don't alert on the insights-operator deployment in namespace openshift-insights",
"deployment": {
"name": "insights-operator",
"scope": {
"cluster": "",
"namespace": "openshift-insights",
"label": null
}
},
"image": null
}
],
"scope": [],
"severity": "MEDIUM_SEVERITY",
"enforcementActions": [],
"policySections": [
{
"sectionName": "",
"policyGroups": [
{
"fieldName": "Process Name",
"booleanOperator": "OR",
"negate": false,
"values": [
{
"value": "scp|sshfs|ssh-copy-id|rsync"
}
]
}
]
}
],
"notifiers": [],
"lastUpdated": null,
"SORTName": "",
"SORTLifecycleStage": "",
"SORTEnforcement": false,
"policyVersion": "1.1",
"mitreAttackVectors": [
{
"tactic": "TA0008",
"techniques": [
"T1570"
]
}
],
"criteriaLocked": true,
"mitreVectorsLocked": true,
"isDefault": true,
"source": "IMPERATIVE"
}