容器内搜索敏感密钥或密码
编辑容器内搜索敏感密钥或密码编辑
此规则检测在容器内使用 grep 和 find 等系统搜索实用程序搜索私有 SSH 密钥或密码。未经授权访问这些敏感文件可能会导致容器环境进一步受损,或促进容器突破到底层主机。
规则类型: eql
规则索引:
- logs-cloud_defend*
严重性: 中等
风险评分: 47
每隔运行: 5m
从以下时间开始搜索索引: now-6m(日期数学格式,另请参见 其他回溯时间
)
每次执行的最大警报数: 100
参考:
标签:
- 数据源:Elastic Defend for Containers
- 域:容器
- 操作系统:Linux
- 用例:威胁检测
- 策略:凭据访问
版本: 2
规则作者:
- Elastic
规则许可证: Elastic License v2
规则查询编辑
process where container.id: "*" and event.type== "start" and (( /*account for tools that execute utilities as a subprocess, in this case the target utility name will appear as a process arg*/ (process.name in ("grep", "egrep", "fgrep") or process.args in ("grep", "egrep", "fgrep")) and process.args : ("*BEGIN PRIVATE*", "*BEGIN OPENSSH PRIVATE*", "*BEGIN RSA PRIVATE*", "*BEGIN DSA PRIVATE*", "*BEGIN EC PRIVATE*", "*pass*", "*ssh*", "*user*") ) or ( /*account for tools that execute utilities as a subprocess, in this case the target utility name will appear as a process arg*/ (process.name in ("find", "locate", "mlocate") or process.args in ("find", "locate", "mlocate")) and process.args : ("*id_rsa*", "*id_dsa*") ))
框架: MITRE ATT&CKTM
-
策略
- 名称:凭据访问
- ID: TA0006
- 参考 URL:https://attack.mitre.org/tactics/TA0006/
-
技术
- 名称:不安全的凭据
- ID: T1552
- 参考 URL:https://attack.mitre.org/techniques/T1552/
-
子技术
- 名称:文件中的凭证
- ID:T1552.001
- 参考 URL:https://attack.mitre.org/techniques/T1552/001/