資安應急響應實務經驗總結:僅用管理員命令提示字元(CMD)即可執行 7 項核心檢測,快速發現木馬/病毒感染跡象。
wmic startup list full → 檢查異常啟動項(如臨時資料夾路徑的未知程式)
ipconfig /displaydns → 檢視解析記錄中是否有惡意域名/IP
wmic process list full | more 或 CSV 格式 → 尋找異常路徑/隨機名稱/可疑指令列參數
wmic service list full | more → 透過路徑/EXE 名稱發現惡意服務
wmic job list full → 罕見但某些惡意碼(如 MPlug)會利用排程工作netstat -abno → 觀察異常外連 IP/埠(25, 8080, 6667 等)與對應進程 PID%1 跨主機稽核,輸出 HTML 報表wmic /node:%1 computersystem get model,name,username,domain /format:htable > c:triage-%1.html
wmic /node:%1 startup list full /format:htable >> c:triage-%1.html
wmic /node:%1 process get description,processid,parentprocessid,commandline /format:htable >> c:triage-%1.html
wmic /node:%1 service get name,processid,startmode,state,status,pathname /format:htable >> c:triage-%1.html
wmic /node:%1 job list full /format:htable >> c:triage-%1.html
發現可疑項目時,提交 VirusTotal 或 malwr.com 掃描驗證,確認惡意後立即清除。這套方法論無需安裝額外工具,適應應急現場快速排查。