본문으로 건너뛰기
SOC Analyst Role
  • 색인 불러오는 중…

↑↓ 이동 · ↵ 열기 · Esc 닫기

ko

치트시트

Splunk SPL vs Sentinel KQL 치트시트

같은 SOC 헌팅을 두 언어로 작성하고, 사람들이 자주 걸려 넘어지는 변환 함정 하나씩을 짚었습니다. 기법, 테이블, 연산자, Event ID로 검색하세요.

연산자 변환 한눈에 보기

Splunk SPLSentinel KQL
index=… sourcetype=…TableName (예: SecurityEvent)
search / wherewhere
stats count by xsummarize count() by x
stats dc(x)summarize dcount(x)
stats values(x)summarize make_set(x)
eval new=…extend new = …
table a b cproject a, b, c
rename a AS bproject-rename b = a
sort - countorder by count_ desc
head 10take 10 / top 10 by …
dedup xdistinct x (또는 summarize arg_max)
timechart span=1h countsummarize count() by bin(TimeGenerated, 1h) | render timechart
earliest=-24hwhere TimeGenerated > ago(24h)
rex field=x "(?<y>…)"extend y = extract("…", 1, x)

헌팅 쿼리 나란히 보기

헌팅 25개 중 25개

한 사용자의 이벤트 검색 및 필터링

기본
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4625 user=jsmith
Sentinel KQL
SecurityEvent
| where EventID == 4625
| where TargetUserName =~ "jsmith"

SPL 필드 값은 기본적으로 대소문자를 구분하지 않지만, KQL ==는 대소문자를 구분합니다. 대소문자를 통제할 수 없다면 =~(또는 has)를 사용하세요.

검색을 최근 24시간으로 제한

기본
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4624 earliest=-24h@h latest=now
Sentinel KQL
SecurityEvent
| where TimeGenerated between (ago(24h) .. now())
| where EventID == 4624

Splunk는 @h로 시간을 맞출(snap) 수 있지만 ago(24h)는 맞추지 않습니다. 경계를 정렬해야 한다면 startofday()나 bin()을 사용하고, 성능을 위해 항상 TimeGenerated를 먼저 필터링하세요.

사용자와 출발지 IP별 이벤트 수 집계

기본
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4625
| stats count by user, src_ip
| sort - count
Sentinel KQL
SecurityEvent
| where EventID == 4625
| summarize Count = count() by TargetAccount, IpAddress
| sort by Count desc

stats ... by는 summarize ... by에 대응합니다. KQL에서 집계 결과로 깔끔하게 정렬하려면 집계 컬럼 이름을 명시해야 합니다.

가장 흔한 / 가장 드문 프로세스 이름

기본
Splunk SPL
index=sysmon EventCode=1
| top limit=10 Image

index=sysmon EventCode=1
| rare limit=10 Image
Sentinel KQL
DeviceProcessEvents
| summarize Count = count() by FileName
| top 10 by Count desc

DeviceProcessEvents
| summarize Count = count() by FileName
| top 10 by Count asc

SPL top/rare는 개수를 세고 비율 컬럼까지 추가해 줍니다. KQL top은 정렬해서 N개 행만 가져오므로 먼저 summarize를 해야 합니다.

RDP 로그온의 고유한 사용자와 출발지 쌍

기본
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4624 Logon_Type=10
| dedup user, src_ip
| table _time, user, src_ip, host
Sentinel KQL
SecurityEvent
| where EventID == 4624 and LogonType == 10
| distinct TargetAccount, IpAddress, Computer

dedup은 가장 최근 이벤트 전체를 유지하지만 distinct는 지정한 컬럼만 반환합니다. dedup처럼 전체 행을 유지하려면 summarize arg_max(TimeGenerated, *) by TargetAccount, IpAddress를 사용하세요.

출력 컬럼 이름 변경 및 선택

기본
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4624
| rename src_ip AS SourceIP, user AS Account
| table _time, Account, SourceIP, host
Sentinel KQL
SecurityEvent
| where EventID == 4624
| project TimeGenerated, Account = TargetAccount, SourceIP = IpAddress, Computer

KQL project는 이름 변경과 선택을 한 번에 합니다. 나머지 컬럼을 모두 유지하려면 project-rename을 사용하세요.

새 필드 계산 (오류 플래그, URI 길이)

기본
Splunk SPL
index=web sourcetype=access_combined
| eval is_error=if(status>=500, 1, 0), uri_len=len(uri)
| stats sum(is_error) AS errors avg(uri_len) AS avg_uri_len by clientip
Sentinel KQL
W3CIISLog
| extend IsError = iff(toint(scStatus) >= 500, 1, 0), UriLen = strlen(csUriStem)
| summarize Errors = sum(IsError), AvgUriLen = avg(UriLen) by cIP

eval은 extend에, if()는 iff()에 대응합니다. W3CIISLog에서 scStatus 컬럼은 문자열이므로 숫자 비교 전에 toint()로 변환하세요.

시간당 로그온 실패를 차트로 표시

기본
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4625 earliest=-24h
| timechart span=1h count AS failed_logons
Sentinel KQL
SecurityEvent
| where TimeGenerated > ago(24h) and EventID == 4625
| summarize FailedLogons = count() by bin(TimeGenerated, 1h)
| render timechart

timechart는 빈 구간을 0으로 채우지만 summarize by bin()은 그냥 생략합니다. 기준선 수립에 공백이 중요하다면 KQL에서 make-series를 사용하세요.

특권 계정 목록으로 로그온 정보 보강

기본
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4624
| lookup privileged_accounts.csv user OUTPUT role
| where isnotnull(role)
| table _time, user, role, src_ip, host
Sentinel KQL
let PrivAccounts = _GetWatchlist('PrivilegedAccounts')
| project TargetUserName = tostring(SearchKey), Role = tostring(Role);
SecurityEvent
| where EventID == 4624
| join kind=inner PrivAccounts on TargetUserName
| project TimeGenerated, TargetUserName, Role, IpAddress, Computer

Sentinel watchlist가 Splunk lookup 파일을 대신합니다. KQL의 기본 join은 innerunique로 왼쪽을 조용히 중복 제거하므로, kind=inner를 명시하세요.

출발지 IP별 로그온 실패 (브루트포스 또는 스프레이)

인증T1110
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4625 earliest=-1h
| stats count AS failures dc(user) AS distinct_users values(user) AS targeted by src_ip
| where failures > 20
| sort - failures
Sentinel KQL
SecurityEvent
| where TimeGenerated > ago(1h) and EventID == 4625
| summarize Failures = count(), DistinctUsers = dcount(TargetAccount), Targeted = make_set(TargetAccount, 20) by IpAddress
| where Failures > 20
| sort by Failures desc

dc()/values()는 dcount()/make_set()에 대응합니다. 한 IP의 고유 사용자 수가 많으면 스프레이, 적으면 브루트포스입니다.

브루트포스 후 로그온 성공

인증T1110.001
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security (EventCode=4625 OR EventCode=4624) earliest=-1h
| eval fail_time=if(EventCode=4625, _time, null()), success_time=if(EventCode=4624, _time, null())
| stats count(fail_time) AS failures min(fail_time) AS first_fail count(success_time) AS successes max(success_time) AS last_success by src_ip, user
| where failures >= 10 AND successes > 0 AND last_success > first_fail
| convert ctime(first_fail) ctime(last_success)
Sentinel KQL
let Failures = SecurityEvent
| where TimeGenerated > ago(1h) and EventID == 4625
| summarize FailCount = count(), FirstFail = min(TimeGenerated) by IpAddress, TargetAccount;
SecurityEvent
| where TimeGenerated > ago(1h) and EventID == 4624
| summarize LastSuccess = max(TimeGenerated) by IpAddress, TargetAccount
| join kind=inner Failures on IpAddress, TargetAccount
| where FailCount >= 10 and LastSuccess > FirstFail
| project IpAddress, TargetAccount, FailCount, FirstFail, LastSuccess

SPL은 보통 조건부 stats로 한 번에 해결하고, KQL은 IP와 계정으로 조인한 두 개의 let 집합으로 쓰는 것이 더 자연스럽습니다.

여러 국가에서의 로그인 (불가능한 이동)

인증T1078.004
Splunk SPL
index=o365 sourcetype=o365:management:activity Workload=AzureActiveDirectory Operation=UserLoggedIn earliest=-24h
| iplocation ClientIP
| stats dc(Country) AS countries values(Country) AS country_list values(ClientIP) AS ips by UserId
| where countries > 1
Sentinel KQL
SigninLogs
| where TimeGenerated > ago(24h) and ResultType == "0"
| extend Country = tostring(LocationDetails.countryOrRegion)
| summarize Countries = dcount(Country), CountryList = make_set(Country), IPs = make_set(IPAddress), Apps = make_set(AppDisplayName) by UserPrincipalName
| where Countries > 1

Splunk는 검색 시점에 iplocation으로 위치를 조회하지만 SigninLogs에는 이미 LocationDetails가 들어 있습니다. ResultType은 문자열이므로 0이 아니라 "0"과 비교하세요.

계정 잠금과 그 출처 (4740)

인증T1110
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4740
| stats count values(Caller_Computer_Name) AS caller_computers by user
| sort - count
Sentinel KQL
SecurityEvent
| where EventID == 4740
| summarize Lockouts = count(), CallerComputers = make_set(TargetDomainName) by TargetAccount
| sort by Lockouts desc

SecurityEvent에서 4740의 Caller Computer Name은 TargetDomainName 컬럼에 들어갑니다. 쿼리를 변환할 때 많은 사람이 걸려 넘어지는 잘 알려진 특이점입니다.

새 사용자 계정 생성 (4720)

인증T1136.001
Splunk SPL
index=wineventlog sourcetype=WinEventLog:Security EventCode=4720
| table _time, host, src_user, user
| rename src_user AS created_by, user AS new_account
Sentinel KQL
SecurityEvent
| where EventID == 4720
| project TimeGenerated, Computer, CreatedBy = SubjectAccount, NewAccount = TargetAccount

Splunk Windows add-on은 생성자와 대상을 src_user와 user로 정규화하지만, SecurityEvent는 원래의 SubjectAccount/TargetAccount 구분을 그대로 유지합니다.

인코딩된 PowerShell 명령줄

프로세스T1059.001
Splunk SPL
index=sysmon EventCode=1 (Image="*\\powershell.exe" OR Image="*\\pwsh.exe") (CommandLine="* -e *" OR CommandLine="* -ec *" OR CommandLine="*-enc*")
| table _time, host, User, ParentImage, CommandLine
Sentinel KQL
DeviceProcessEvents
| where TimeGenerated > ago(7d)
| where FileName in~ ("powershell.exe", "pwsh.exe")
| where ProcessCommandLine matches regex @"(?i)\s-(e|ec|en\w*)\s"
| project TimeGenerated, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

PowerShell은 -EncodedCommand의 어떤 접두어든 받아들이므로 고정 문자열보다 정규식이 낫습니다. 페이로드는 UTF-16LE Base64이므로, 제거하지 않으면 디코딩된 텍스트에 null 바이트가 보입니다.

셸이나 스크립트 호스트를 실행하는 Office 애플리케이션

프로세스T1204.002
Splunk SPL
index=sysmon EventCode=1 (ParentImage="*\\winword.exe" OR ParentImage="*\\excel.exe" OR ParentImage="*\\powerpnt.exe" OR ParentImage="*\\outlook.exe") (Image="*\\cmd.exe" OR Image="*\\powershell.exe" OR Image="*\\wscript.exe" OR Image="*\\cscript.exe" OR Image="*\\mshta.exe" OR Image="*\\rundll32.exe")
| table _time, host, User, ParentImage, Image, CommandLine
Sentinel KQL
DeviceProcessEvents
| where InitiatingProcessFileName in~ ("winword.exe", "excel.exe", "powerpnt.exe", "outlook.exe")
| where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe", "wscript.exe", "cscript.exe", "mshta.exe", "rundll32.exe", "regsvr32.exe")
| project TimeGenerated, DeviceName, AccountName, InitiatingProcessFileName, FileName, ProcessCommandLine

Sysmon은 전체 경로를 제공하므로 SPL에서는 백슬래시를 이스케이프한 와일드카드가 필요하고, MDE는 순수한 FileName 값을 분리해 주므로 대소문자를 구분하지 않는 in~ 목록에 적합합니다.

드문 부모-자식 프로세스 쌍

프로세스T1059
Splunk SPL
index=sysmon EventCode=1 earliest=-7d
| eval parent=lower(mvindex(split(ParentImage, "\\"), -1)), child=lower(mvindex(split(Image, "\\"), -1))
| stats count dc(host) AS hosts values(host) AS host_list by parent, child
| where count < 5
| sort count
Sentinel KQL
DeviceProcessEvents
| where TimeGenerated > ago(7d)
| summarize Count = count(), Hosts = dcount(DeviceName), HostList = make_set(DeviceName, 10) by Parent = tolower(InitiatingProcessFileName), Child = tolower(FileName)
| where Count < 5
| sort by Count asc

SPL에서는 split/mvindex로 경로에서 파일 이름을 잘라내야 하고, KQL은 summarize ... by 안에서 그룹화 키를 인라인으로 계산할 수 있습니다.

파일 다운로드나 디코딩에 사용된 certutil (LOLBin)

프로세스T1105
Splunk SPL
index=sysmon EventCode=1 (Image="*\\certutil.exe" OR OriginalFileName="CertUtil.exe") (CommandLine="*urlcache*" OR CommandLine="*verifyctl*" OR CommandLine="*-decode*")
| table _time, host, User, ParentImage, CommandLine
Sentinel KQL
DeviceProcessEvents
| where FileName =~ "certutil.exe" or ProcessVersionInfoOriginalFileName =~ "CertUtil.exe"
| where ProcessCommandLine has_any ("urlcache", "verifyctl", "decode")
| project TimeGenerated, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

원본 파일 이름으로 일치시키면 이름을 바꾼 복사본도 잡을 수 있습니다. KQL has_any는 전체 단어로 일치하며 큰 테이블에서 contains보다 훨씬 빠릅니다.

드문 목적지 포트로의 아웃바운드 연결

네트워크T1571
Splunk SPL
index=sysmon EventCode=3 Initiated=true NOT DestinationPort IN (80, 443, 53, 22, 25, 88, 123, 389, 445, 3389)
| where NOT (cidrmatch("10.0.0.0/8", DestinationIp) OR cidrmatch("172.16.0.0/12", DestinationIp) OR cidrmatch("192.168.0.0/16", DestinationIp))
| stats count dc(host) AS hosts values(Image) AS processes by DestinationPort
| where hosts < 3
| sort count
Sentinel KQL
DeviceNetworkEvents
| where TimeGenerated > ago(7d)
| where ActionType == "ConnectionSuccess" and RemoteIPType == "Public"
| where RemotePort !in (80, 443, 53, 22, 25, 88, 123, 389, 445, 3389)
| summarize Count = count(), Hosts = dcount(DeviceName), Processes = make_set(InitiatingProcessFileName, 10) by RemotePort
| where Hosts < 3
| sort by Count asc

Splunk는 사설 대역을 제외하려면 cidrmatch()가 필요하지만, MDE는 RemoteIPType에서 주소를 미리 분류합니다. NOT x IN (...)은 !in이 됩니다.

긴 DNS 쿼리 (DNS 터널링 가능성)

네트워크T1071.004
Splunk SPL
index=sysmon EventCode=22
| eval qlen=len(QueryName)
| where qlen > 60
| rex field=QueryName "(?<domain>[^.]+\.[^.]+)$"
| stats dc(QueryName) AS unique_queries max(qlen) AS max_len values(Image) AS processes by domain, host
| where unique_queries > 50
| sort - unique_queries
Sentinel KQL
DnsEvents
| where TimeGenerated > ago(24h) and SubType == "LookupQuery"
| where strlen(Name) > 60
| extend Domain = extract(@"([^.]+\.[^.]+)$", 1, Name)
| summarize UniqueQueries = dcount(Name), MaxLen = max(strlen(Name)), Clients = make_set(ClientIP, 10) by Domain
| where UniqueQueries > 50
| sort by UniqueQueries desc

rex는 extract()에 대응합니다. 마지막 두 레이블만 뽑는 단순한 정규식은 co.uk 같은 도메인을 잘못 그룹화하므로, 결과는 단서로 취급하고 상위 도메인별 고유 서브도메인 수를 확인하세요.

외부 발신자 한 명이 많은 수신자에게 발송

이메일T1566
Splunk SPL
index=mail sourcetype=ms:o365:reporting:messagetrace earliest=-24h NOT SenderAddress="*@corp.example.com"
| stats dc(RecipientAddress) AS recipients values(Subject) AS subjects values(Status) AS statuses by SenderAddress, FromIP
| where recipients > 20
| sort - recipients
Sentinel KQL
EmailEvents
| where TimeGenerated > ago(24h) and EmailDirection == "Inbound"
| summarize Recipients = dcount(RecipientEmailAddress), Subjects = make_set(Subject, 5), Actions = make_set(DeliveryAction) by SenderFromAddress, SenderIPv4
| where Recipients > 20
| sort by Recipients desc

EmailEvents는 EmailDirection과 DeliveryAction을 바로 제공하지만, Splunk 메시지 추적 데이터에서는 자사 도메인을 직접 제외하고 전달 Status를 직접 읽어야 합니다.

인증에 실패했지만 전달된 송장 또는 결제 주제 이메일

이메일T1566.001
Splunk SPL
index=mail sourcetype=ms:o365:reporting:messagetrace Status=Delivered (Subject="*invoice*" OR Subject="*payment*" OR Subject="*wire transfer*")
| table _time, SenderAddress, FromIP, RecipientAddress, Subject
Sentinel KQL
EmailEvents
| where TimeGenerated > ago(7d) and EmailDirection == "Inbound" and DeliveryAction == "Delivered"
| where Subject has_any ("invoice", "payment", "wire transfer")
| extend Auth = parse_json(AuthenticationDetails)
| where tostring(Auth.DMARC) =~ "fail" or tostring(Auth.SPF) =~ "fail"
| project TimeGenerated, SenderFromAddress, SenderIPv4, RecipientEmailAddress, Subject, AuthenticationDetails

메시지 추적에는 SPF/DKIM/DMARC 판정이 없으므로 Splunk에서는 게이트웨이나 헤더 로그로 피벗해야 하고, EmailEvents는 이를 AuthenticationDetails에 JSON으로 제공합니다.

웹 서버 로그의 SQL 인젝션 패턴

웹T1190
Splunk SPL
index=web sourcetype=access_combined
| eval decoded=urldecode(uri)
| where match(decoded, "(?i)(union\s+(all\s+)?select|or\s+1=1|sleep\(|benchmark\(|information_schema|' or ')")
| stats count values(status) AS statuses values(uri_path) AS paths by clientip
| sort - count
Sentinel KQL
W3CIISLog
| where TimeGenerated > ago(24h)
| extend Q = url_decode(csUriQuery)
| where Q matches regex @"(?i)(union\s+(all\s+)?select|or\s+1=1|sleep\(|benchmark\(|information_schema|' or ')"
| summarize Requests = count(), Statuses = make_set(scStatus), Paths = make_set(csUriStem, 10) by cIP
| sort by Requests desc

일치시키기 전에 디코딩하세요(urldecode vs url_decode). 그렇지 않으면 인코딩된 페이로드가 빠져나갑니다. 상태 코드도 확인하세요. 인젝션 페이로드에 대한 200이 403보다 훨씬 중요합니다.

SharePoint 또는 OneDrive에서의 대량 파일 다운로드

클라우드T1530
Splunk SPL
index=o365 sourcetype=o365:management:activity Workload IN (SharePoint, OneDrive) Operation=FileDownloaded earliest=-24h
| bin _time span=1h
| stats dc(ObjectId) AS files values(ClientIP) AS ips by _time, UserId
| where files > 100
| sort - files
Sentinel KQL
OfficeActivity
| where TimeGenerated > ago(24h)
| where OfficeWorkload in ("SharePoint", "OneDrive") and Operation == "FileDownloaded"
| summarize Files = dcount(OfficeObjectId), IPs = make_set(ClientIP, 10) by UserId, bin(TimeGenerated, 1h)
| where Files > 100
| sort by Files desc

SPL은 stats 전에 별도의 bin 명령으로 시간을 구간화하고, KQL은 summarize ... by 절 안에 bin()을 넣습니다.

의심스러운 받은편지함 규칙 생성 (전달, 삭제, 이동)

클라우드T1564.008
Splunk SPL
index=o365 sourcetype=o365:management:activity Workload=Exchange (Operation=New-InboxRule OR Operation=Set-InboxRule OR Operation=UpdateInboxRules)
| search Parameters{}.Name IN (DeleteMessage, MoveToFolder, ForwardTo, RedirectTo, ForwardAsAttachmentTo)
| table _time, UserId, ClientIP, Operation, Parameters{}.Name, Parameters{}.Value
Sentinel KQL
OfficeActivity
| where OfficeWorkload == "Exchange"
| where Operation in~ ("New-InboxRule", "Set-InboxRule", "UpdateInboxRules")
| where Parameters has_any ("DeleteMessage", "MoveToFolder", "ForwardTo", "RedirectTo", "ForwardAsAttachmentTo")
| project TimeGenerated, UserId, ClientIP, Operation, Parameters

Splunk는 규칙 매개변수를 다중값 Parameters{}.Name/Value 필드로 제공하지만, OfficeActivity는 이를 JSON 문자열로 저장하므로 has_any로 검색하거나 parse_json으로 펼칠 수 있습니다.

면접관은 SIEM 쿼리 논리를 어떻게 평가하는가

완벽한 쿼리를 외워서 입력하라는 SOC 면접은 드뭅니다. 평가하는 것은 쿼리로 생각할 수 있는가입니다. 올바른 이벤트로 필터링하고, 집계해서 이상치를 찾고, 결과가 왜 의심스러운지 혹은 아닌지 설명할 수 있는지. 팀이 Splunk를 쓰든 Microsoft Sentinel을 쓰든, SOC 분석가 면접용 Splunk 쿼리와 그에 대응하는 KQL에서는 같은 세 가지 패턴이 반복해서 나옵니다.

1. 로그인 실패 필터링

"지난 1시간 동안의 무차별 대입을 어떻게 찾겠습니까?" 면접관이 듣고 싶은 답은 이렇습니다. Event ID 4625로 필터링하고, 출발지 IP로 그룹화하고, 시도 횟수와 고유 사용자 이름 수를 세고, 임계값을 정합니다. 한 사용자에 대한 많은 시도는 패스워드 추측이고, 여러 사용자에 대한 한 번씩의 시도는 스프레이입니다. 그다음 무엇을 연결할지 말하세요. 같은 IP의 4624입니다.

출발지별 로그인 실패 (SPL)
index=wineventlog EventCode=4625 earliest=-1h
| stats count dc(user) AS users BY src_ip
| where count > 20
| sort - count
출발지별 로그인 실패 (KQL)
SecurityEvent
| where TimeGenerated > ago(1h) and EventID == 4625
| summarize count(), users = dcount(TargetUserName) by IpAddress
| where count_ > 20
| order by count_ desc

면접관이 즐겨 묻는 Splunk와 KQL의 작은 문법 차이에 주목하세요. stats … BY는 summarize … by가 되고, dc()는 dcount()가 되며, KQL은 카운트 열 이름을 count_로 붙입니다.

2. 의심스러운 부모-자식 프로세스 찾기

두 번째 단골 질문은 "Office가 PowerShell을 실행하는 것을 어떻게 탐지하겠습니까?"입니다. 프로세스 생성 이벤트(4688 또는 Sysmon 1, Microsoft Defender에서는 DeviceProcessEvents)를 부모가 winword.exe, excel.exe, outlook.exe이고 자식이 powershell.exe, cmd.exe, wscript.exe, mshta.exe인 경우로 필터링합니다. 그리고 부모와 자식의 관계가 바로 신호라고 설명하세요. PowerShell 자체는 정상이지만, Word가 실행하고 명령줄에 -enc가 붙은 PowerShell은 정상이 아닙니다. 위의 "셸이나 스크립트 호스트를 실행하는 Office 애플리케이션"과 "드문 부모-자식 프로세스 쌍" 헌팅에서 두 버전을 모두 볼 수 있습니다.

3. 오탐 튜닝

L2 성격의 면접에서는 "이 규칙이 하루에 300번 발생합니다. 어떻게 하겠습니까?"라고 묻습니다. 강한 답변은 규칙을 그냥 끄지 않습니다. 호스트, 사용자, 프로세스별로 탐지 결과를 그룹화해 노이즈의 원인을 찾고, 그것이 정상임을 확인한 뒤(백업 에이전트, 취약점 스캐너, 오래된 비밀번호를 쓰는 서비스 계정 등), NOT src_ip IN (…)이나 where Account !in (…) 같은 좁은 예외를 추가하고, 이유를 문서화하고, 검토 날짜를 정합니다. 이 과정을 설명할 수 있느냐가 SOC 업무용 Microsoft Sentinel KQL 쿼리와 복사해 붙인 문법을 가르는 차이입니다.

실제 같은 데이터로 사고 과정을 연습하려면 중복 수집 오탐 미션을 SOC 시뮬레이터에서 풀고, 필드 이름 확인용으로 Windows Event ID 치트시트를 열어 두세요.

더 깊이 알아보기

SIEM: Splunk & KQL 모듈에서 무차별 대입과 불가능한 이동 헌팅을 단계별로 설명합니다. 그다음 불가능한 이동 미션에서 VPN과 공격자를 구분할 수 있는지 확인하세요.

자주 묻는 질문

SOC 면접을 위해 Splunk SPL과 KQL 중 무엇을 배워야 하나요?

지원하는 회사가 쓰는 언어를 배우고, 개념은 양쪽 모두 익히세요. 인도의 많은 서비스 기업은 고객사를 위해 Splunk나 QRadar를 운영하고, Microsoft 중심 기업은 Sentinel과 Defender(KQL)를 씁니다. 필터링하고, 집계하고, 기준선과 비교한다는 사고방식은 같습니다.

Splunk의 stats count by에 해당하는 KQL은 무엇인가요?

summarize count() by field입니다. KQL에서는 카운트 열 이름이 count_이므로 order by count_ desc로 정렬합니다.

KQL은 대소문자를 구분하나요?

테이블과 열 이름, == 연산자는 대소문자를 구분합니다. =~, has, contains는 구분하지 않습니다. SPL 필드 값은 search에서는 대체로 대소문자를 구분하지 않지만 where에서는 구분합니다.

Splunk 필드 이름이 예시와 다른 이유는 무엇인가요?

필드 이름은 애드온과 sourcetype에 따라 다릅니다. 예시는 Splunk Add-on for Microsoft Windows의 정규화된 필드(user, src_ip 등)를 기준으로 합니다. 원본 XML Windows 이벤트는 TargetUserName, IpAddress 같은 이름을 사용합니다.