Genian EDR

Download 0
Last updated Nov 17, 2026

지니언 EDR - 메일 클라이언트 탐색·regsvr32·rundll32 사용자 DLL 실행·시스템 언어 확인 복합 행위 - StrelaStealer 메일 계정 탈취 의심

지니언 EDR 로그에서 메일 클라이언트 탐색, regsvr32·rundll32의 사용자 DLL 실행, 시스템 언어 확인이 한 단말에서 이어지는 StrelaStealer형 메일 계정 탈취를 탐지합니다.

Overview

Priority High
Type Batch
Schedule Every month/Every day/Every hour/Every 10 mins */10 * * * *
Message 지니언 EDR - StrelaStealer형 복합 행위: $host_ip
Output field order hostname, host_ip, grp_cnt, anchor_cnt, groups, techs, first_seen, last_seen
MITRE Techniques T1518· T1218.010· T1218.011· T1614· T1106· T1083· T1082· T1105· T1587.001· T1071.001· T1070.004· T1059.001
MITRE tactics TA0042 Resource Development· TA0002 Execution· TA0005 Defense Evasion· TA0007 Discovery· 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", "FileDelete")) 3 or (_schema == "genian-edr-network" and event_subtype == "NetworkConnect") 4 or (_schema == "genian-edr-process" and event_subtype == "ProcessStart") 5| search len(trim(hostname)) > 0 6| eval psrc = if(len(trim(image_path)) > 0, trim(image_path), trim(image)) 7| eval proc = lower(substr(psrc, lastindexof(psrc, "\\") + 1)), ipath = lower(psrc), cmd_l = lower(nvl(cmd_line, "")), 8 i_dir = if(lastindexof(psrc, "\\") >= 0, lower(substr(psrc, 0, lastindexof(psrc, "\\"))), ""), 9 par = lower(nvl(substr(parent_image, lastindexof(parent_image, "\\") + 1), "")), hostname = lower(trim(hostname)) 10| 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) 11| 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) 12| eval fpath = lower(nvl(file_path, "")), f_dir = if(lastindexof(file_path, "\\") >= 0, lower(substr(file_path, 0, lastindexof(file_path, "\\"))), "") 13| eval grp = case( 14 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (in(proc, "powershell.exe", "pwsh.exe") and (match(ps_text, "thunderbird|foxmail|mailbird|\\\\profiles\\\\[^\\\\]+\\\\(?:logins\\.json|key4\\.db)") or (match(ps_text, "\\boutlook\\b") and match(ps_text, "\\.lnk\\b|start menu|\\bimap\\b|\\bpop3\\b")))), "mailclient", 15 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (proc == "regsvr32.exe" and (match(cmd_l, "[-/]i:\\s*\"?(?:https?://|\\\\\\\\)|scrobj") or match(cmd_l, "(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\programdata|c:\\\\windows\\\\temp|\\\\appdata\\\\local\\\\temp|\\\\appdata\\\\roaming|\\\\downloads)\\\\") or match(cmd_l, "\\.(?:txt|dat|bin|log|tmp|jpg|png|gif|ini|cfg)\"?\\s*$"))), "regsvr32", 16 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (proc == "rundll32.exe" and match(cmd_l, "(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\programdata|c:\\\\windows\\\\temp|\\\\appdata\\\\local\\\\temp|\\\\appdata\\\\roaming|\\\\downloads)\\\\[^\\r\\n]*?\\.(?:dll|ocx|cpl|dat|bin|tmp)\\b")), "rundll", 17 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (in(proc, "powershell.exe", "pwsh.exe") and match(ps_text, "getlocaleinfo|getgeoinfo|getusergeoid|get-winhomelocation|ipinfo\\.io|ip-api\\.com|ipapi\\.co|geoplugin|ipwho\\.is|freegeoip")), "geo", 18 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (in(proc, "powershell.exe", "pwsh.exe") and match(ps_text, "add-type[\\s\\S]*dllimport|dllimport[\\s\\S]*add-type")), "nativeapi", 19 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (in(proc, "cmd.exe", "powershell.exe", "pwsh.exe", "where.exe", "tree.com", "wmic.exe") and match(ps_text, "\\b(?:cim_datafile|cim_directory|win32_directory)\\b[\\s\\S]*\\bget\\b|\\bdir\\b[^|&\\r\\n]*\\s/s\\b|\\btree(?:\\.com)?\\b[^|&\\r\\n]*\\s/f\\b|\\bwhere(?:\\.exe)?\\s+/r\\s|get-childitem[^|\\r\\n]*-recurse|\\bgci\\b[^|\\r\\n]*-recurse|dllimport[\\s\\S]*\\bfind(?:first|next)filew?\\b")), "filedisc", 20 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (in(proc, "systeminfo.exe", "hostname.exe") or (proc == "wmic.exe" and match(cmd_l, "\\b(?:os|computersystem|bios|qfe|csproduct|path\\s+win32_(?:operatingsystem|bios|baseboard|computersystemproduct))\\b[\\s\\S]*\\b(?:get|list)\\b")) or (in(proc, "powershell.exe", "pwsh.exe") and match(ps_text, "getnativesysteminfo|getsysteminfo\\b|get-computerinfo|win32_operatingsystem|\\.partofdomain\\b|dllimport[\\s\\S]*\\b(?:getlogicaldrivestringsw?|getdrivetypew?|getlogicaldrives)\\b"))), "sysinfo", 21 _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", 22 _schema == "genian-edr-file" and event_subtype == "FileDelete" and (match(proc, "^(?:msmpeng|mssense|sentinelagent|csfalconservice|cylancesvc|mcshield|bdservicehost|savservice|sophos|ekrn|avp\\.exe|ntrtscan|tmbmsrv|cbdefense|repmgr|xagt|elastic-endpoint|vsserv|ccsvchst|avastsvc|v3svc|ayagent)") and match(fpath, "(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\programdata|c:\\\\windows\\\\temp|\\\\appdata\\\\local\\\\temp|\\\\appdata\\\\roaming|\\\\downloads)\\\\") and match(fpath, "\\.(?:exe|dll|scr|com|pif|cpl|sys|swf|jar|js|jse|vbs|vbe|wsf|hta|ps1|bat|cmd|lnk|docm|xlsm|zip|rar|7z|iso|img|txt)$") and not(match(fpath, "^c:\\\\programdata\\\\microsoft\\\\"))), "avquar", 23 _schema == "genian-edr-network" and event_subtype == "NetworkConnect" and (in(proc, "powershell.exe", "pwsh.exe", "mshta.exe", "wscript.exe", "cscript.exe", "rundll32.exe", "regsvr32.exe", "certutil.exe", "bitsadmin.exe") and isnotnull(remote_ip) and not(match(remote_ip, "^(?:10\\.|127\\.|192\\.168\\.|172\\.(?:1[6-9]|2\\d|3[01])\\.|169\\.254\\.|0\\.|::1|fe80)"))), "webc2", 24 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and ((in(proc, "powershell.exe", "pwsh.exe") and match(ps_text, "remove-item|\\bdel\\b|\\bri\\b|\\brm\\b") and match(ps_text, "(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\windows\\\\temp|c:\\\\programdata)\\\\[^\\r\\n\"']*\\.(?:exe|dll|sys|ps1|bat|cmd|vbs|js|jse|hta|cs|bin|zip|7z|rar)\\b")) or (proc == "cmd.exe" and match(cmd_l, "\\b(?:del|erase)\\b[^&|]*(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\windows\\\\temp|c:\\\\programdata|%temp%|\\\\appdata\\\\local\\\\temp)\\\\[^&|\"]*\\.(?:exe|dll|sys|ps1|bat|cmd|vbs|js|jse|hta|bin)\\b")) or in(proc, "sdelete.exe", "sdelete64.exe")), "wipe", 25 _schema == "genian-edr-process" and event_subtype == "ProcessStart" and (in(proc, "powershell.exe", "pwsh.exe") and match(cmd_line, "(?i)(?:^|\\s)\"?-(?:ep|ex|exe|exec|execu|execut|executi|executio|execution|executionp|executionpo|executionpol|executionpoli|executionpolic|executionpolicy)\"?\\s+\"?bypass\"?(?:\\s|$)") and (isnotnull(b64) or match(cmd_l, "(?:^|\\s)\"?-(?:f|fi|fil|file)\"?\\s+\"?(?:c:\\\\users\\\\public|c:\\\\perflogs|c:\\\\windows\\\\temp|c:\\\\programdata|c:\\\\users\\\\[^\\\\]+\\\\appdata\\\\local\\\\temp)\\\\"))), "psbypass") 26| search isnotnull(grp) 27| eval tech = case(grp == "mailclient", "T1518", grp == "regsvr32", "T1218.010", grp == "rundll", "T1218.011", grp == "geo", "T1614", grp == "nativeapi", "T1106", grp == "filedisc", "T1083", grp == "sysinfo", "T1082", grp == "drop", "T1105", grp == "avquar", "T1587.001", grp == "webc2", "T1071.001", grp == "wipe", "T1070.004", grp == "psbypass", "T1059.001") 28| eval anchor_g = if(in(grp, "mailclient", "regsvr32", "rundll", "geo"), grp, null) 29| stats dc(grp) as grp_cnt, dc(anchor_g) as anchor_cnt, values(grp) as groups, values(tech) as techs, min(_time) as first_seen, max(_time) as last_seen by hostname, host_ip 30| search anchor_cnt >= 3 and grp_cnt >= 6 31| eval groups = strjoin(", ", groups), techs = strjoin(", ", techs), 32 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)를 집계합니다. PowerShell 메일 클라이언트(Thunderbird·Outlook) 탐색·regsvr32의 사용자 쓰기 위치 DLL 실행·rundll32의 사용자 쓰기 위치 DLL 실행·시스템 국가와 언어 확인 중 3개 이상이 있고(필수 행위군), 서로 다른 행위군이 6개 이상이면 탐지합니다. 탐지 결과에는 관찰된 행위군 목록(groups)과 기법 목록(techs), 첫 발생 시각(first_seen)과 마지막 발생 시각(last_seen)을 함께 제공합니다.

Threat analysis

StrelaStealer는 Outlook과 Thunderbird의 프로필에서 메일 계정 자격 증명을 탈취하는 정보 탈취형 악성코드입니다. DLL 형태로 유입되어 rundll32·regsvr32로 실행되며, 시스템 언어와 국가를 확인해 표적 지역의 단말에서만 동작합니다. 탈취된 메일 계정은 내부 사용자를 사칭한 2차 피싱에 쓰일 수 있습니다.

False positives

메일 이전·백업 도구가 설치된 메일 클라이언트와 프로필 경로를 조회하는 경우 필수 행위군 일부가 관찰될 수 있습니다. 사용자 쓰기 위치 DLL 실행이 겹쳐야 탐지 조건을 충족하며, 확인된 이전 도구는 경로 기준으로 예외 조건을 추가합니다.

Response actions

실행된 DLL을 확보하고 유입 경로(메일 첨부 압축·스크립트)를 확인합니다. 해당 단말에 설정된 메일 계정의 암호를 변경하고 메일 서버에서 비정상 로그인 이력을 조회합니다. 정탐으로 확인되면 단말을 격리하고 DLL의 통신 목적지를 차단합니다.

No comments yet.