Skip to content

x-glacier/kali-pentest / kali-pentest-zh

kali-pentest-zh

Flagged

通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。

FileKindSize
SKILL.mdskill md15.6 KB
references/cloud-native/README.mdmarkdown4.2 KB
references/cloud-native/tools/azurehound.mdmarkdown4.0 KB
references/cloud-native/tools/docker-bench-security.mdmarkdown1.9 KB
references/cloud-native/tools/kube-bench.mdmarkdown1.7 KB
references/cloud-native/tools/kubescape.mdmarkdown1.7 KB
references/cloud-native/tools/pacu.mdmarkdown3.0 KB
references/cloud-native/tools/peirates.mdmarkdown6.4 KB
references/cloud-native/tools/prowler.mdmarkdown1.5 KB
references/cloud-native/tools/scoutsuite.mdmarkdown1.2 KB
references/environment/README.mdmarkdown1.4 KB
references/environment/docker-mode-networking.mdmarkdown2.2 KB
references/environment/docker-mode-persistent-container.mdmarkdown3.8 KB
references/environment/docker-mode.mdmarkdown2.0 KB
references/environment/local-mode.mdmarkdown946 B
references/environment/server-mode.mdmarkdown4.1 KB
references/environment/state-files.mdmarkdown2.3 KB
references/exploitation/README.mdmarkdown9.6 KB
references/exploitation/tools/chisel.mdmarkdown3.2 KB
references/exploitation/tools/coercer.mdmarkdown2.5 KB
references/exploitation/tools/dns2tcp.mdmarkdown3.8 KB
references/exploitation/tools/evil-winrm.mdmarkdown2.9 KB
references/exploitation/tools/evilginx2.mdmarkdown2.2 KB
references/exploitation/tools/getsploit.mdmarkdown2.0 KB
references/exploitation/tools/gophish.mdmarkdown6.1 KB
references/exploitation/tools/impacket.mdmarkdown10.9 KB
references/exploitation/tools/iodine.mdmarkdown3.5 KB
references/exploitation/tools/ligolo-ng.mdmarkdown3.3 KB
references/exploitation/tools/metasploit.mdmarkdown11.0 KB
references/exploitation/tools/mitm6.mdmarkdown2.6 KB
references/exploitation/tools/msfconsole.mdmarkdown3.9 KB
references/exploitation/tools/msfvenom.mdmarkdown8.5 KB
references/exploitation/tools/mssqlpwner.mdmarkdown2.5 KB
references/exploitation/tools/netcat.mdmarkdown4.4 KB
references/exploitation/tools/odat.mdmarkdown3.0 KB
references/exploitation/tools/proxytunnel.mdmarkdown2.2 KB
references/exploitation/tools/routersploit.mdmarkdown2.9 KB
references/exploitation/tools/searchsploit.mdmarkdown4.7 KB
references/exploitation/tools/setoolkit.mdmarkdown1015 B
references/exploitation/tools/smbclient.mdmarkdown2.8 KB
references/exploitation/tools/socat.mdmarkdown2.8 KB
references/exploitation/tools/veil.mdmarkdown2.9 KB
references/forensics/README.mdmarkdown8.8 KB
references/forensics/tools/bulk-extractor.mdmarkdown4.5 KB
references/forensics/tools/chainsaw.mdmarkdown2.6 KB
references/forensics/tools/chkrootkit.mdmarkdown2.6 KB
references/forensics/tools/dc3dd.mdmarkdown2.9 KB
references/forensics/tools/dcfldd.mdmarkdown3.2 KB
references/forensics/tools/ddrescue.mdmarkdown3.6 KB
references/forensics/tools/exiftool.mdmarkdown2.5 KB
references/forensics/tools/foremost.mdmarkdown2.4 KB
references/forensics/tools/hashdeep.mdmarkdown3.5 KB
references/forensics/tools/plaso.mdmarkdown3.7 KB
references/forensics/tools/regripper.mdmarkdown3.4 KB
references/forensics/tools/rkhunter.mdmarkdown3.4 KB
references/forensics/tools/scalpel.mdmarkdown2.6 KB
references/forensics/tools/sleuthkit.mdmarkdown4.0 KB
references/forensics/tools/ssdeep.mdmarkdown3.1 KB
references/forensics/tools/steghide.mdmarkdown2.8 KB
references/forensics/tools/stegseek.mdmarkdown2.5 KB
references/forensics/tools/tcpdump.mdmarkdown2.8 KB
references/forensics/tools/tcpflow.mdmarkdown3.4 KB
references/forensics/tools/testdisk.mdmarkdown3.0 KB
references/forensics/tools/tshark.mdmarkdown3.0 KB
references/forensics/tools/volatility.mdmarkdown5.0 KB
references/forensics/tools/yara.mdmarkdown3.3 KB
references/information-gathering/README.mdmarkdown15.6 KB
references/information-gathering/tools/altdns.mdmarkdown1.9 KB
references/information-gathering/tools/amass.mdmarkdown9.1 KB
references/information-gathering/tools/arp-scan.mdmarkdown1.9 KB
references/information-gathering/tools/assetfinder.mdmarkdown1.9 KB
references/information-gathering/tools/autorecon.mdmarkdown2.9 KB
references/information-gathering/tools/certgraph.mdmarkdown3.3 KB
references/information-gathering/tools/cloud-enum.mdmarkdown2.1 KB
references/information-gathering/tools/cloudbrute.mdmarkdown2.1 KB
references/information-gathering/tools/dig.mdmarkdown2.3 KB
references/information-gathering/tools/dmitry.mdmarkdown2.0 KB
references/information-gathering/tools/dnsenum.mdmarkdown1.7 KB
references/information-gathering/tools/dnsgen.mdmarkdown1.5 KB
references/information-gathering/tools/dnsmap.mdmarkdown1.8 KB
references/information-gathering/tools/dnsrecon.mdmarkdown2.7 KB
references/information-gathering/tools/dnstwist.mdmarkdown3.0 KB
references/information-gathering/tools/dnsx.mdmarkdown2.8 KB
references/information-gathering/tools/eyewitness.mdmarkdown2.4 KB
references/information-gathering/tools/fierce.mdmarkdown2.5 KB
references/information-gathering/tools/finalrecon.mdmarkdown2.4 KB
references/information-gathering/tools/findomain.mdmarkdown2.5 KB
references/information-gathering/tools/fping.mdmarkdown2.3 KB
references/information-gathering/tools/getallurls.mdmarkdown2.4 KB
references/information-gathering/tools/gowitness.mdmarkdown4.8 KB
references/information-gathering/tools/h8mail.mdmarkdown3.9 KB
references/information-gathering/tools/hakrawler.mdmarkdown2.3 KB
references/information-gathering/tools/hosthunter.mdmarkdown2.6 KB
references/information-gathering/tools/httprobe.mdmarkdown2.1 KB
references/information-gathering/tools/httpx.mdmarkdown4.6 KB
references/information-gathering/tools/ldeep.mdmarkdown4.9 KB
references/information-gathering/tools/masscan.mdmarkdown3.8 KB
references/information-gathering/tools/massdns.mdmarkdown1.9 KB
references/information-gathering/tools/metagoofil.mdmarkdown3.0 KB
references/information-gathering/tools/naabu.mdmarkdown2.7 KB
references/information-gathering/tools/nbtscan.mdmarkdown2.2 KB
references/information-gathering/tools/netdiscover.mdmarkdown2.6 KB
references/information-gathering/tools/nmap.mdmarkdown8.4 KB
references/information-gathering/tools/p0f.mdmarkdown2.1 KB
references/information-gathering/tools/recon-ng.mdmarkdown6.6 KB
references/information-gathering/tools/sherlock.mdmarkdown3.7 KB
references/information-gathering/tools/shodan.mdmarkdown3.6 KB
references/information-gathering/tools/spiderfoot.mdmarkdown2.7 KB
references/information-gathering/tools/subfinder.mdmarkdown2.5 KB
references/information-gathering/tools/sublist3r.mdmarkdown1.9 KB
references/information-gathering/tools/theHarvester.mdmarkdown2.9 KB
references/information-gathering/tools/trufflehog.mdmarkdown3.1 KB
references/information-gathering/tools/wafw00f.mdmarkdown1.9 KB
references/information-gathering/tools/whatweb.mdmarkdown5.1 KB
references/information-gathering/tools/whois.mdmarkdown2.0 KB
references/password/README.mdmarkdown11.8 KB
references/password/tools/brutespray.mdmarkdown2.8 KB
references/password/tools/cewl.mdmarkdown2.1 KB
references/password/tools/changeme.mdmarkdown3.0 KB
references/password/tools/chntpw.mdmarkdown2.5 KB
references/password/tools/crowbar.mdmarkdown2.6 KB
references/password/tools/crunch.mdmarkdown2.7 KB
references/password/tools/fcrackzip.mdmarkdown2.3 KB
references/password/tools/gpp-decrypt.mdmarkdown2.6 KB
references/password/tools/hashcat.mdmarkdown4.6 KB
references/password/tools/hashid.mdmarkdown2.1 KB
references/password/tools/hydra.mdmarkdown4.4 KB
references/password/tools/john.mdmarkdown3.2 KB
references/password/tools/kerbrute.mdmarkdown2.8 KB
references/password/tools/medusa.mdmarkdown3.3 KB
references/password/tools/name-that-hash.mdmarkdown3.2 KB
references/password/tools/ncrack.mdmarkdown3.3 KB
references/password/tools/netexec.mdmarkdown3.2 KB
references/password/tools/patator.mdmarkdown2.2 KB
references/password/tools/pdfcrack.mdmarkdown2.9 KB
references/password/tools/rainbowcrack.mdmarkdown2.9 KB
references/password/tools/responder.mdmarkdown2.7 KB
references/playbooks/README.mdmarkdown8.1 KB
references/playbooks/active-directory.mdmarkdown14.0 KB
references/playbooks/api-security.mdmarkdown18.6 KB
references/playbooks/cloud-native-assessment.mdmarkdown17.6 KB
references/playbooks/external-attack-surface.mdmarkdown8.1 KB
references/playbooks/forensics-triage.mdmarkdown11.7 KB
references/playbooks/internal-network-protocols.mdmarkdown6.5 KB
references/playbooks/internal-network.mdmarkdown14.4 KB
references/playbooks/mobile-application.mdmarkdown9.8 KB
references/playbooks/password-audit.mdmarkdown9.0 KB
references/playbooks/post-exploitation.mdmarkdown11.4 KB
references/playbooks/reporting-workflow.mdmarkdown6.3 KB
references/playbooks/rfid-nfc.mdmarkdown7.2 KB
references/playbooks/source-code-audit.mdmarkdown8.4 KB
references/playbooks/voip-ics.mdmarkdown17.3 KB
references/playbooks/web-application.mdmarkdown14.7 KB
references/playbooks/wireless-assessment.mdmarkdown9.6 KB
references/post-exploitation/README.mdmarkdown11.0 KB
references/post-exploitation/tools/bloodhound.mdmarkdown4.8 KB
references/post-exploitation/tools/bloodhound.py.mdmarkdown4.0 KB
references/post-exploitation/tools/bloodyad.mdmarkdown4.1 KB
references/post-exploitation/tools/certipy-ad.mdmarkdown3.2 KB
references/post-exploitation/tools/dnscat2.mdmarkdown3.5 KB
references/post-exploitation/tools/dploot.mdmarkdown4.2 KB
references/post-exploitation/tools/havoc.mdmarkdown3.8 KB
references/post-exploitation/tools/hekatomb.mdmarkdown3.0 KB
references/post-exploitation/tools/krbrelayx.mdmarkdown7.3 KB
references/post-exploitation/tools/lapsdumper.mdmarkdown2.4 KB
references/post-exploitation/tools/linpeas.mdmarkdown3.6 KB
references/post-exploitation/tools/linux-exploit-suggester.mdmarkdown2.8 KB
references/post-exploitation/tools/lsassy.mdmarkdown2.8 KB
references/post-exploitation/tools/mimikatz.mdmarkdown4.2 KB
references/post-exploitation/tools/powershell-empire.mdmarkdown4.0 KB
references/post-exploitation/tools/powersploit.mdmarkdown5.5 KB
references/post-exploitation/tools/proxychains.mdmarkdown2.1 KB
references/post-exploitation/tools/pspy.mdmarkdown2.8 KB
references/post-exploitation/tools/pwncat.mdmarkdown6.4 KB
references/post-exploitation/tools/sliver.mdmarkdown1.4 KB
references/post-exploitation/tools/sshuttle.mdmarkdown3.2 KB
references/post-exploitation/tools/winpeas.mdmarkdown3.0 KB
references/reporting/README.mdmarkdown2.5 KB
references/reporting/tools/pandoc.mdmarkdown3.2 KB
references/reporting/tools/report-template.mdmarkdown8.5 KB
references/reverse-engineering/README.mdmarkdown5.6 KB
references/reverse-engineering/tools/apktool.mdmarkdown1.8 KB
references/reverse-engineering/tools/binwalk.mdmarkdown3.0 KB
references/reverse-engineering/tools/checksec.mdmarkdown3.5 KB
references/reverse-engineering/tools/dex2jar.mdmarkdown3.2 KB
references/reverse-engineering/tools/frida.mdmarkdown2.4 KB
references/reverse-engineering/tools/ghidra-headless.mdmarkdown3.0 KB
references/reverse-engineering/tools/jadx.mdmarkdown2.2 KB
references/reverse-engineering/tools/ldd.mdmarkdown1.9 KB
references/reverse-engineering/tools/nm.mdmarkdown2.3 KB
references/reverse-engineering/tools/objdump.mdmarkdown2.5 KB
references/reverse-engineering/tools/objection.mdmarkdown3.0 KB
references/reverse-engineering/tools/rabin2.mdmarkdown2.3 KB
references/reverse-engineering/tools/radare2.mdmarkdown1.3 KB
references/reverse-engineering/tools/readelf.mdmarkdown2.3 KB
references/reverse-engineering/tools/ropper.mdmarkdown4.1 KB
references/reverse-engineering/tools/strings.mdmarkdown2.3 KB
references/reverse-engineering/tools/xxd.mdmarkdown2.3 KB
references/rfid-nfc/README.mdmarkdown2.7 KB
references/rfid-nfc/tools/libnfc.mdmarkdown2.2 KB

references/playbooks/forensics-triage.md

View on GitHub
# 取证分诊 Playbook

用于已授权分析磁盘镜像、内存转储、数据包、日志、文件或疑似隐藏数据。

## 输入

- 证据文件、哈希(如提供)、案件目标和允许的输出位置。
- 是否禁止破坏性写入。默认按只读处理。
- 目标操作系统或采集来源(如已知)。
- 可用证据类型:内存转储、磁盘镜像、PCAP、Windows 事件日志、独立文件。

## 流程

1. **证据获取和处理**
   - 遵循易失性顺序:先获取内存,再获取磁盘镜像,再获取网络捕获,最后获取日志和文件。
   - 成像前验证写保护。确认硬件或软件写保护器已激活。
   - 开始证据保管链记录:谁获取了什么、何时、从哪个系统、使用什么工具以及哈希验证。
   - 始终在取证副本上工作,绝不使用原件。从已验证的镜像创建工作副本。

   (取证工具选择参见 `../forensics/README.md`。)

   ```bash
   # 创建带哈希验证的取证磁盘镜像
   dc3dd if=/dev/sdb hof=/tmp/evidence_image.dd hash=sha256 log=/tmp/acquisition.log
   # 替代方案:dcfldd 内联哈希
   dcfldd if=/dev/sdb of=/tmp/evidence.dd hash=sha256 hashlog=/tmp/hashes.txt
   # 损坏介质:ddrescue 带错误映射
   ddrescue -d /dev/sdb /tmp/evidence.dd /tmp/ddrescue.map
   # 验证镜像完整性
   sha256sum /tmp/evidence_image.dd >> /tmp/evidence_hashes.txt
   ```

   使用 `dc3dd` 进行带内联哈希的取证成像(参见 `../forensics/tools/dc3dd.md`)。使用 `dcfldd` 作为 `dc3dd` 的增强替代方案,支持内联哈希和分段输出(参见 `../forensics/tools/dcfldd.md`)。使用 `ddrescue` 对损坏或故障介质进行成像,支持自动重试和错误映射(参见 `../forensics/tools/ddrescue.md`)。

   根据可用证据的决策分支:
   - 有内存转储:进入阶段 3(内存分析)。
   - 有磁盘镜像:进入阶段 4(时间线构建),然后进入阶段 5(磁盘和文件恢复)。
   - 有 PCAP:进入阶段 6(流量分析)。
   - 有 Windows 事件日志:进入阶段 7(注册表和应用程序工件)和阶段 8(日志和元数据)。
   - 在报告前将所有发现汇总到阶段 9(反取证检测)。

2. **识别文件类型**
   - 视情况使用 `file`、可用时使用 `binwalk`(参见 `../reverse-engineering/tools/binwalk.md`)、`exiftool`(参见 `../forensics/tools/exiftool.md`)和归档工具。
   - 对磁盘镜像,提取前先识别分区和文件系统。

   ```bash
   exiftool <file> > /tmp/exiftool_metadata.txt
   foremost -t all -i <disk-image> -o /tmp/foremost_recovery/
   bulk_extractor -o /tmp/bulk_output/ <disk-image>
   ```

   使用 `foremost` 从磁盘镜像中进行文件雕刻(参见 `../forensics/tools/foremost.md`)。使用 `bulk_extractor` 进行批量数据提取,包括电子邮件、URL 和信用卡号(参见 `../forensics/tools/bulk-extractor.md`)。

3. **内存分析**
   - 使用 `volatility`(参见 `../forensics/tools/volatility.md`),并选择正确的 profile/symbol。
   - 根据案件目标提取进程、网络、凭据、恶意软件和时间线指标。

   ```bash
   vol -f <memory-dump> windows.info                     # OS/版本信息
   vol -f <memory-dump> windows.pslist                   # 进程列表
   vol -f <memory-dump> windows.netscan                  # 网络连接
   vol -f <memory-dump> windows.registry.hashdump        # 凭据哈希
   ```

4. **时间线构建**
    - 将文件系统 MAC 时间(Modified、Accessed、Changed)与事件日志和内存工件关联,构建统一时间线。
    - 使用 `plaso`/`log2timeline` 将多个证据来源导入单一标准化时间线:

    ```bash
    plaso-log2timeline /tmp/timeline.plaso /path/to/evidence
    plaso-psort -o l2tcsv -w /tmp/timeline.csv /tmp/timeline.plaso
    ```

    - 重点关注:事件窗口内的文件创建/修改、来自内存的进程执行时间、带时间戳的网络连接以及日志条目。

    **跨源关联:** 不要孤立分析每种证据类型。对每个可疑工件(进程、连接、文件),在至少一个其他来源中搜索佐证(内存 ↔ 磁盘 ↔ 流量 ↔ 日志)。未经佐证的发现应标记说明,而非静默丢弃。

    ```bash
    # 从磁盘镜像提取文件系统时间线
    fls -r -m / <disk-image> > /tmp/bodyfile.txt
    mactime -b /tmp/bodyfile.txt -d > /tmp/filesystem_timeline.csv
    # 合并 Volatility 时间线输出
    vol -f <memory-dump> timeliner.Timeliner > /tmp/memory_timeline.txt
    ```

    - 跨来源交叉引用时间戳以识别:初始入侵时间、横向移动、数据暂存和数据外传窗口。
    - 将时间戳不一致标记为反取证审查(阶段 9)。

5. **磁盘和文件恢复**
   - 使用 `dc3dd`、`foremost`、`bulk-extractor` 和文件系统工具。
   - 保留恢复输出路径和哈希。

   ```bash
   dc3dd if=/dev/sdb hof=/tmp/disk_image.dd hash=sha256 log=/tmp/dc3dd.log
   foremost -t jpg,png,pdf,zip -i /tmp/disk_image.dd -o /tmp/recovered/
   # Scalpel 文件雕刻,支持可配置签名
   scalpel -c /etc/scalpel/scalpel.conf -o /tmp/scalpel_out/ /tmp/disk_image.dd
   ```

   在 `foremost` 之外使用 `scalpel` 进行文件雕刻,支持更灵活的签名定义(参见 `../forensics/tools/scalpel.md`)。

   使用 `hashdeep` 验证恢复文件的完整性,使用 `ssdeep` 模糊哈希识别相似文件:

   ```bash
   hashdeep -r -l /tmp/recovered/ > /tmp/hashset.txt
   ssdeep -r /tmp/extracted/ > /tmp/fuzzy.txt && ssdeep -d /tmp/fuzzy.txt
   ```

   使用 `hashdeep` 对恢复的证据进行递归哈希验证(参见 `../forensics/tools/hashdeep.md`)。使用 `ssdeep` 进行模糊哈希匹配,识别证据集中相似或修改过的文件(参见 `../forensics/tools/ssdeep.md`)。

   5.1. **恶意软件分诊**
   - 使用 YARA 规则扫描提取的文件和可疑工件。
   - 使用社区规则集或编写针对当前项目指标的自定义规则。

   ```bash
   yara -r /path/to/rules/ /tmp/extracted_files/
   yara -r /usr/share/yara-rules/ /path/to/suspicious_file
   ```

   - 将匹配结果与哈希数据库和 VirusTotal(如已授权)进行交叉比对。
   - 记录恶意软件工件的文件路径、哈希、YARA 规则匹配和时间戳。

6. **流量分析**
   - 使用 `tcpdump` 和 `tshark` 分析会话、协议、凭据、文件、DNS、HTTP、TLS 和时间线(参见 `../forensics/tools/tshark.md` 和 `../forensics/tools/tcpdump.md`)。

   ```bash
   tshark -r capture.pcap -q -z conv,tcp                  # 会话摘要
   tshark -r capture.pcap -Y "http.request" -T fields -e http.host -e http.request.uri
   tcpdump -r capture.pcap -n 'port 53'                   # DNS 查询
   # 将 TCP 流重组为独立文件
   tcpflow -r capture.pcap -o /tmp/tcpflow_out/
   ```

   使用 `tcpflow` 从数据包捕获中重组并提取 TCP 流内容,以便进行更深入的内容分析(参见 `../forensics/tools/tcpflow.md`)。

7. **注册表和应用程序工件分析**
    - Windows 注册表配置单元检查,用于发现持久化机制、用户活动和设备历史:
      - SAM:本地用户账户和密码策略。
      - SYSTEM:服务、驱动程序、计算机名、时区、网络接口。
      - SOFTWARE:已安装程序、自启动项、操作系统配置。
      - NTUSER.DAT:每用户 MRU 列表、输入的 URL、最近文档、UserAssist、shellbags。
      - USB 历史:SYSTEM 配置单元中的 USBSTOR 条目、setupapi 日志和 NTUSER.DAT 中的挂载点。

    ```bash
    # 使用 regripper 解析注册表配置单元(如可用)
    regripper -r /tmp/mounted/Windows/System32/config/SAM -f sam > /tmp/reg_sam.txt
    regripper -r /tmp/mounted/Windows/System32/config/SYSTEM -f system > /tmp/reg_system.txt
    regripper -r /tmp/mounted/Windows/System32/config/SOFTWARE -f software > /tmp/reg_software.txt
    regripper -r /tmp/mounted/Users/<username>/NTUSER.DAT -f ntuser > /tmp/reg_ntuser.txt
    ```

    - 浏览器工件分析:来自 Chrome、Firefox 和 Edge 配置文件目录的历史数据库、下载记录、缓存页面和保存的凭据。
    - 使用 `chainsaw` 进行 Windows 事件日志定向检测分析:

    ```bash
    # 使用 Sigma 规则搜索已知攻击模式
    chainsaw hunt <evtx-directory> -s /usr/share/sigma/rules/windows/ --mapping chainsaw/mappings/sigma-event-logs-all.yml
    # 搜索特定事件 ID
    chainsaw search -t 'Event.System.EventID: =4624' <evtx-directory>    # 登录事件
    chainsaw search -t 'Event.System.EventID: =4688' <evtx-directory>    # 进程创建
    chainsaw search -t 'Event.System.EventID: =7045' <evtx-directory>    # 服务安装
    ```

8. **日志和元数据**
   - 用 `chainsaw`(参见 `../forensics/tools/chainsaw.md`)分析 Windows 事件日志,用 `exiftool`(参见 `../forensics/tools/exiftool.md`)分析元数据,需要时使用 `stegseek` 进行隐写密码短语破解(参见 `../forensics/tools/stegseek.md`)。

   ```bash
   chainsaw hunt <evtx-directory> -s /usr/share/sigma/rules/windows/ --mapping chainsaw/mappings/sigma-event-logs-all.yml
   stegseek <suspicious.jpg> /usr/share/wordlists/rockyou.txt   # 快速密码短语破解
   ```

   **Linux 证据来源:** 对于 Linux 系统,还应检查:`/var/log/auth.log`、`/var/log/syslog`、所有用户的 `.bash_history`、`/etc/crontab` 和 `/var/spool/cron/`、SSH authorized keys 和 known hosts、systemd 日志(`journalctl`),以及 `/tmp/` 中的可疑工具。

9. **反取证检测**
   - 检测时间戳篡改:查找 MAC 时间异常,其中 $STANDARD_INFORMATION 时间戳与 $FILE_NAME 时间戳不同(NTFS),或创建时间晚于修改时间。
   - 检测日志清除:顺序事件日志记录中的间隙、Event ID 1102(审计日志已清除)或缺失的预期日志文件。
   - 检测数据擦除:查找安全删除工具(例如 `sdelete`、`cipher /w`)的痕迹、大片零填充扇区或文件系统日志异常。
   - 检测加密容器:识别 TrueCrypt/VeraCrypt 容器、BitLocker 卷或其他加密分区。如果发现加密证据,参见[密码审计 Playbook](password-audit.md) 了解解密方法。

   ```bash
   # 通过 MFT 分析检查时间戳篡改(NTFS)
   vol -f <memory-dump> windows.mftscan > /tmp/mft_analysis.txt
   # 查找日志清除事件
   chainsaw search -t 'Event.System.EventID: =1102' <evtx-directory>
   # 识别加密卷
   file /tmp/recovered/* | grep -i 'encrypted\|truecrypt\|bitlocker'
   # 对挂载的证据进行 rootkit 检测
   chkrootkit -r /tmp/mounted/
   rkhunter --check --skip-keypress --report-warnings-only
   ```

   使用 `chkrootkit` 和 `rkhunter` 扫描挂载的证据中的 rootkit、后门和可疑的系统修改(参见 `../forensics/tools/chkrootkit.md` 和 `../forensics/tools/rkhunter.md`)。

   - 将反取证指标与时间线(阶段 4)交叉引用,判断证据销毁是否发生在事件之后。

## 交叉引用

- `password-audit.md` — 加密证据破解。
- `post-exploitation.md` — 内存分析提取的凭据哈希可用于后渗透工作流。
- `reporting-workflow.md` — 发现文档和报告结构。

## 预期产物

- 证据清单、保管链记录和哈希。
- 关联文件系统、内存和日志来源的统一时间线。
- 提取的指标、文件、时间线和协议摘要。
- 注册表和应用程序工件发现。
- 反取证指标和证据完整性评估。
- 工具日志和恢复工件位置。
- 与源证据关联的发现。

## 停止条件

- 案件目标已用证据支撑的结论回答。
- 所有可用证据类型(内存、磁盘、流量、日志)已完成分析并在统一时间线中交叉关联。
- 反取证检测已完成,所有识别的证据缺口已记录。
- 继续分析需要破坏性修改、密码破解或范围外数据审查。
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall