pam-privilege-attack
Audited by Socket on Sep 19, 2026
6 alerts found:
SecurityMalwarex4AnomalySUSPICIOUS/HIGH-RISK skill. Its stated purpose is offensive compromise of PAM platforms, and its actual footprint aligns with credential theft, session hijacking, persistence, and anti-forensics against Tier-0 systems. Data flows mostly go directly to target/vendor endpoints rather than attacker infrastructure, so this is not confirmed malware, but it is a high-risk offensive/exfiltration skill for an AI agent.
This fragment contains clear malicious behavior: it implements an authentication backdoor that accepts arbitrary passwords and captures usernames and passwords in plaintext. The associated PAM service installation instructions provide a practical deployment path for unauthorized authentication while attempting to remain less visible by avoiding standard PAM configuration files. The code should not be compiled, installed, or used; the affected host should be investigated for unauthorized PAM modules, service files, and credential exposure.
This fragment is a highly actionable PAM compromise and ransomware-style attack playbook. It describes credential harvesting, downstream exploitation, persistence, and anti-forensics across multiple privileged-access-management products. The placeholders and lab framing reduce evidence of an immediately deployable payload, but do not materially reduce the malicious capability or risk of the content. No direct npm malware mechanism is visible in this excerpt, but the supplied material is clearly dual-use at best and predominantly offensive, with explicit unauthorized-access and evasion procedures.
The supplied file is a security-testing playbook rather than executable package code. It does not itself perform network access, credential theft, persistence, or system modification, so direct malware evidence is absent. However, it contains extensive dual-use and destructive operational guidance that could facilitate privileged credential compromise and audit evasion if executed against real systems. Review and distribute it only within controlled, authorized assessment environments; avoid storing real credentials or production targets in the templates.
该内容不是普通依赖库代码,而是一份描述并复现 PAM 后门攻击的报告。所示 PAM 逻辑明确窃取明文密码并绕过认证,属于高危恶意行为;/etc/shadow 提取和密码破解流程进一步增加凭据攻击风险。仅从提供的文档无法验证引用的完整源码或包归属,但若相关代码实际被安装或执行,应视为严重安全事件并立即隔离、移除恶意 PAM 配置和模块、轮换凭据并审计认证日志。
This code is an explicit PAM backdoor. It captures plaintext usernames and passwords in /tmp/.pam_log and authenticates every password, with an additional hardcoded magic password. It should not be built, installed, or used.