用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill t1037-002-login-hook命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | T1037.002_login-hook |
| description | Adversaries may use a Login Hook to establish persistence executed upon user logon. |
| category | configuration |
| version | 18.1 |
| author | cyberstrike-official |
| tags | ["mitre-attack","enterprise","t1037.002","persistence","privilege-escalation","macos","sub-technique"] |
| technique_id | T1037.002 |
| tactic | persistence |
| all_tactics | ["persistence","privilege-escalation"] |
| platforms | ["macOS"] |
| mitre_url | https://attack.mitre.org/techniques/T1037/002 |
| tech_stack | ["macos"] |
| cwe_ids | ["CWE-276"] |
| chains_with | ["T1037","T1037.001","T1037.003","T1037.004","T1037.005"] |
| prerequisites | ["T1037"] |
| severity_boost | {"T1037":"Chain with T1037 for deeper attack path","T1037.001":"Chain with T1037.001 for deeper attack path","T1037.003":"Chain with T1037.003 for deeper attack path"} |
Sub-technique of: T1037
Adversaries may use a Login Hook to establish persistence executed upon user logon. A login hook is a plist file that points to a specific script to execute with root privileges upon user logon. The plist file is located in the /Library/Preferences/com.apple.loginwindow.plist file and can be modified using the defaults command-line utility. This behavior is the same for logout hooks where a script can be executed upon user logout. All hooks require administrator permissions to modify or create hooks.
Adversaries can add or insert a path to a malicious script in the com.apple.loginwindow.plist file, using the LoginHook or LogoutHook key-value pair. The malicious script is executed upon the next user login. If a login hook already exists, adversaries can add additional commands to an existing login hook. There can be only one login and logout hook on a system at a time.
Note: Login hooks were deprecated in 10.11 version of macOS in favor of Launch Daemon and Launch Agent
Platforms: macOS
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Mac logon script
Supported Platforms: macos
If Atomic Red Team tests are not applicable, manually verify the technique by:
Identify Attack Surface: Determine if the target environment is susceptible to Login Hook by examining the target platforms (macOS).
Assess Existing Defenses: Review whether mitigations for T1037.002 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.
Restrict write access to logon scripts to specific administrators.
| Finding | Severity | Impact |
|---|---|---|
| Login Hook technique applicable | High | Persistence |
| CWE ID | Title |
|---|---|
| CWE-276 | Incorrect Default Permissions |