Genian EDR

Download 0
Last updated Nov 17, 2026

지니언 EDR - 리눅스 NTLM 수집용 SMB 서버·Outlook NTLM 유출 유도 메일(Moniker 링크·미리 알림 UNC)·NTLM 해시 크래킹 복합 행위 - Outlook NTLM 유출(CVE-2024-21413·CVE-2023-23397) 공격 의심

지니언 EDR 로그에서 리눅스 호스트의 NTLM 수집용 SMB 서버 실행·유도 메일 발송·해시 크래킹 또는 Windows 피해 단말에서 기본 도구를 이용한 연속 파일 내려받기가 나타나는 Outlook NTLM 유출(CVE-2024-21413·CVE-2023-23397) 공격을 탐지합니다.

Overview

Priority High
Type Batch
Schedule Every month/Every day/Every hour/Every 10 mins */10 * * * *
Message 지니언 EDR - Outlook Moniker NTLM 유출형 복합 행위: $host_ip
Output field order hostname, host_ip, grp_cnt, anchor_cnt, has_forcedauth, has_exec, dl_files, groups, techs, first_seen, last_seen
MITRE Techniques T1187· T1566.002· T1110.002· T1608.001· T1105· T1070.004· T1204
MITRE tactics TA0042 Resource Development· TA0001 Initial Access· TA0002 Execution· TA0005 Defense Evasion· TA0006 Credential Access· TA0011 Command and Control
Origin User proposal letsgo

Query

1table duration=30m EDR_GENIAN 2| search (_schema == "genian-edr-file" and in(event_subtype, "FileCreate", "FileMove")) 3 or (_schema == "genian-edr-process" and event_subtype == "ProcessStart") 4| search len(trim(hostname)) > 0 5| eval psrc = if(len(trim(image_path)) > 0, trim(image_path), trim(image)) 6| eval proc = lower(substr(psrc, lastindexof(psrc, "\\") + 1)), ipath = lower(psrc), cmd_l = lower(nvl(cmd_line, "")), 7 i_dir = if(lastindexof(psrc, "\\") >= 0, lower(substr(psrc, 0, lastindexof(psrc, "\\"))), ""), 8 par = lower(nvl(substr(parent_image, lastindexof(parent_image, "\\") + 1), "")), hostname = lower(trim(hostname)) 9| eval b64 = if(in(proc, "powershell.exe", "pwsh.exe"), valueof(groups(cmd_line, "(?i)(?:^|\\s)\"?-(?:e|ec|en|enc|enco|encod|encode|encoded|encodedc|encodedco|encodedcom|encodedcomm|encodedcomma|encodedcomman|encodedcommand)\"?\\s+\"?([a-z0-9+/]{20,}={0,2})\"?(?:\\s|$)"), 0), null) 10| eval ps_text = if(in(proc, "powershell.exe", "pwsh.exe"), lower(concat(cmd_line, " ", nvl(decode(frombase64(substr(b64, 0, len(b64) - mod(len(b64), 4))), "UTF-16LE"), ""))), cmd_l) 11| eval fpath = lower(nvl(file_path, "")), f_dir = if(lastindexof(file_path, "\\") >= 0, lower(substr(file_path, 0, lastindexof(file_path, "\\"))), "") 12| eval grp = case( 13 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (match(cmd_l, "impacket-smbserver|smbserver\\.py|ntlmrelayx|impacket-ntlmrelayx|(?:^|[\\s/])responder(?:\\.py)?\\s+-|inveigh") or (match(cmd_l, "(?:^|[^a-z])grep\\s") and contains(cmd_l, "0-9]{32}"))), "forcedauth", 14 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (match(cmd_l, "file:/{2,3}\\\\{2,4}[^\\s\"<>]+\\.[a-z0-9]{2,5}![a-z0-9]") or (match(cmd_l, "(?:^|[^a-z])mutt\\s") and match(cmd_l, "content_type\\s*=\\s*text/html"))), "moniker", 15 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (match(cmd_l, "cve-2023-23397") or (match(cmd_l, "python[0-9.]*\\s") and match(cmd_l, "\\s-p\\s+[^\\s]?\\\\{2}[0-9a-z._-]+\\\\") and match(cmd_l, "\\s-t\\s+\\S+@\\S+"))), "zeroclick", 16 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (match(cmd_l, "hashcat(?:64)?(?:\\.exe|\\.bin)?\\s+-[a-z]") or match(cmd_l, "(?:^|[\\s/\\\\])john(?:\\.exe)?\\s+[^\\r\\n]*--(?:wordlist|format|show|rules)\\b") or match(cmd_l, "hashcat\\.(?:txt|out|log|potfile)\\b|\\.potfile\\b|john\\.pot\\b")), "pwcrack", 17 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (match(ipath, "/mutt$") and (match(cmd_l, "\\s-a\\s+\\S") or (match(cmd_l, "\\s-s\\s") and match(cmd_l, "\\s-[cb]\\s")))), "lx_phish", 18 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (indexof(ipath, "/") == 0 and (match(cmd_l, "python[0-9.]*\\s+-m\\s+(?:http\\.server|simplehttpserver)\\b") or match(cmd_l, "\\bphp\\s+-s\\s+\\S+:\\d+") or match(cmd_l, "busybox\\s+httpd\\b")) and not(match(ipath, "/(?:grep|egrep|pgrep|pkill|ps)$"))), "stagesrv", 19 _schema == "genian-edr-file" and in(event_subtype, "FileCreate", "FileMove") and (match(concat(fpath, " ", lower(nvl(file_path2, ""))), "(?:^|\\s)/(?:tmp|var/tmp|dev/shm)/[^\\s]+") and file_type == "EXEC" and not(match(lower(psrc), "^/usr/bin/(?:dpkg|apt|apt-get|snap)$|^/usr/lib/snapd/"))), "lx_tmpdrop", 20 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (match(ipath, "/(?:curl|wget)$") and match(cmd_l, "(?:\\s-o|--output(?:-document)?)[= ]?\\s*\\S?/(?:tmp|var/tmp|dev/shm)/|\\|\\s*(?:sudo\\s+)?(?:ba|da|z)?sh\\b")), "lx_dl", 21 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (indexof(ipath, "/") == 0 and ((match(ipath, "/(?:rm|shred|unlink|truncate)$") and match(cmd_l, "\\s/(?:usr/)?s?bin/\\.[^/\\s]+|\\s/dev/shm/[^/\\s]+|\\.(?:bash|zsh)_history|/var/log/(?:auth\\.log|secure|wtmp|btmp|lastlog|syslog|messages|audit/)|^shred\\b|/shred\\s")) or match(cmd_l, "\\bhistory\\s+-c\\b|unset\\s+histfile|histfile=/dev/null") or (match(ipath, "/(?:cp|mv)$") and match(cmd_l, "\\.(?:bash|zsh)_history")))), "lx_wipe", 22 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (((proc == "certutil.exe" and match(cmd_l, "-urlcache|-verifyctl") and match(cmd_l, "https?://")) or (proc == "curl.exe" and match(cmd_l, "https?://") and match(cmd_l, "\\s-o\\s|--output\\s|--remote-name") and match(cmd_l, "(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\programdata|c:\\\\windows\\\\temp|\\\\appdata\\\\local\\\\temp|\\\\appdata\\\\roaming|\\\\downloads)\\\\")) or (proc == "bitsadmin.exe" and match(cmd_l, "/transfer\\b") and match(cmd_l, "https?://")) or (proc == "cmd.exe" and match(cmd_l, "https?://") and match(cmd_l, "certutil(?:\\.exe)?\\s[^\\r\\n]*-urlcache|curl(?:\\.exe)?\\s[^\\r\\n]*\\s-o\\s|bitsadmin(?:\\.exe)?\\s[^\\r\\n]*/transfer") and match(cmd_l, "(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\programdata|c:\\\\windows\\\\temp|\\\\appdata\\\\local\\\\temp|\\\\appdata\\\\roaming|\\\\downloads)\\\\"))) and not(match(cmd_l, "https?://(?:127\\.0\\.0\\.1|localhost|\\[::1\\])[:/]")) and not(proc == "certutil.exe" and match(cmd_l, "\\sdelete\\s*$"))), "lolbindl", 23 _schema == "genian-edr-file" and event_subtype == "FileCreate" and ((match(fpath, "\\.(?:exe|dll|sys|scr|cpl|bat|cmd|ps1|vbs|vbe|js|jse|wsf|hta)$") or (nvl(file_type, "") == "PE" and not(match(fpath, "\\.[a-z0-9]{2,4}$")))) and (indexof(fpath, "c:\\users\\public\\") == 0 or indexof(fpath, "c:\\perflogs\\") == 0 or in(f_dir, "c:\\programdata", "c:\\windows\\temp")) and not(match(fpath, "\\\\__psscriptpolicytest_[^\\\\]+\\.ps1$")) and not(in(proc, "msiexec.exe", "trustedinstaller.exe", "tiworker.exe", "mpsigstub.exe", "mpcmdrun.exe", "msmpeng.exe", "dismhost.exe", "system"))), "drop", 24 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (match(ipath, "\\.(?:exe|scr|com|pif)$") and (indexof(ipath, "c:\\users\\public\\") == 0 or indexof(ipath, "c:\\perflogs\\") == 0 or in(i_dir, "c:\\programdata", "c:\\windows\\temp"))), "exec") 25| search isnotnull(grp) 26| eval tech = case(grp == "forcedauth", "T1187", grp == "moniker", "T1566.002", grp == "zeroclick", "T1187", grp == "pwcrack", "T1110.002", grp == "lx_phish", "T1566.002", grp == "stagesrv", "T1608.001", grp == "lx_tmpdrop", "T1105", grp == "lx_dl", "T1105", grp == "lx_wipe", "T1070.004", grp == "lolbindl", "T1105", grp == "drop", "T1105", grp == "exec", "T1204") 27| eval anchor_g = if(in(grp, "forcedauth"), grp, null), has_forcedauth_v = if(grp == "forcedauth", 1, 0), has_exec_v = if(grp == "exec", 1, 0), dl_files_v = if(grp == "lolbindl", cmd_l, null) 28| stats dc(grp) as grp_cnt, dc(anchor_g) as anchor_cnt, max(has_forcedauth_v) as has_forcedauth, max(has_exec_v) as has_exec, dc(dl_files_v) as dl_files, values(grp) as groups, values(tech) as techs, min(_time) as first_seen, max(_time) as last_seen by hostname, host_ip 29| search (has_forcedauth == 1 and grp_cnt >= 3) or (dl_files >= 3 and has_exec == 1 and grp_cnt >= 3) 30| eval groups = strjoin(", ", groups), techs = strjoin(", ", techs), 31 first_seen = string(first_seen, "yyyy-MM-dd HH:mm:ss"), last_seen = string(last_seen, "yyyy-MM-dd HH:mm:ss")

10분마다 직전 30분의 지니언 EDR 프로세스·파일 로그를 조회하여, 각 이벤트를 조건에 따라 행위군(grp)으로 분류하고 해당하는 MITRE 기법 번호(tech)를 붙입니다. 이후 hostname·host_ip별로 서로 다른 행위군 수(grp_cnt)와 필수 행위군 수(anchor_cnt)를 집계합니다. NTLM 수집용 SMB·릴레이 서버 실행 또는 수집 로그의 NTLM 해시 추출이 있고(필수 행위군) 서로 다른 행위군이 3개 이상이거나, Windows 기본 도구(certutil·curl·bitsadmin)로 서로 다른 파일을 3개 이상 내려받고(dl_files) 사용자 쓰기 위치 실행 파일을 실행하며 서로 다른 행위군이 3개 이상이면 탐지합니다. 탐지 결과에는 관찰된 행위군 목록(groups)과 기법 목록(techs), 첫 발생 시각(first_seen)과 마지막 발생 시각(last_seen)을 함께 제공합니다.

Threat analysis

CVE-2024-21413은 메일 본문의 Moniker 링크로, CVE-2023-23397은 미리 알림 소리 경로의 UNC 지정으로 Outlook이 공격자 SMB 서버에 NTLM 인증을 보내게 하는 취약점입니다. 후자는 메일을 열지 않아도 동작합니다. 수집된 NetNTLMv2 해시는 오프라인 크래킹이나 릴레이 공격에 쓰이므로, 수집 서버가 내부에서 실행됐다면 유출 대상 계정을 바로 식별해야 합니다.

False positives

보안 점검 부서가 승인된 진단에서 SMB 수집 서버를 실행하는 경우 탐지될 수 있습니다. Windows 쪽 조건은 설치 스크립트가 certutil·curl로 여러 파일을 내려받아 실행하는 경우 충족될 수 있으므로, 확인된 스크립트는 내려받기 주소 기준으로 예외 조건을 추가합니다.

Response actions

수집 서버 로그에서 인증을 보낸 계정과 단말을 식별하여 해당 계정의 암호를 변경합니다. 발송된 유도 메일의 수신자를 확인하고 메일을 회수합니다. 정탐으로 확인되면 호스트를 격리하고, 외부로 나가는 SMB(445) 통신을 방화벽에서 차단하며 Outlook 보안 업데이트 적용 여부를 확인합니다.

No comments yet.