Skip to content

Commit

Permalink
Add Zeroed Header update (#3808)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreen27 authored Oct 9, 2024
1 parent f646c99 commit 5d9724e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artifacts/definitions/Windows/Forensics/Lnk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ parameters:
- name: RiskyExe
description: Regex target exe to flag as risky.
type: regex
default: \\(cmd|powershell|cscript|wscript|rundll32|regsvr32|mshta|wmic|netsh)\.exe$
default: \\(cmd|powershell|cscript|wscript|rundll32|regsvr32|mshta|wmic|conhost)\.exe$


export: |
Expand Down Expand Up @@ -1464,7 +1464,7 @@ sources:
else= False)
LET sus_cli(data) = dict(
`Arguments have ticks` = data=~'''\^|\`''',
`Arguments have ticks` = data=~'''\^|\`|[a-z][\'\"]{2}[a-z]''',
`Arguments have environment variables` = data=~'''\%|\$env:''',
`Arguments have rare characters` = data=~'''\?\!\~\@''',
`Arguments have leading space` = data=~ '^ ',
Expand All @@ -1489,7 +1489,7 @@ sources:
LET add_suspicious = SELECT *, dict(
`Large Size` = SourceFile.Size > SusSize,
`Startup Path` = SourceFile.OSPath =~ '''\\Startup\\''',
`Zeroed Headers` = ( ShellLinkHeader.FileSize=0 or ShellLinkHeader.CreationTime=0),
`Zeroed Headers` = ( ShellLinkHeader.FileSize=0 AND ShellLinkHeader.CreationTime=~'^1601-01' AND len(list=LinkInfo.LinkInfoFlags)=0 ),
`Hidden window` = ShellLinkHeader.ShowCommand = 'SHOWMINNOACTIVE',
`Target Changed path` = lowcase(string=LinkInfo.Target.Path) != lowcase(string=OldPath) AND OldPath,
`Target Changed size` = ( ShellLinkHeader.FileSize - OldSize != 0 ) AND ShellLinkHeader.FileSize AND OldSize,
Expand Down

0 comments on commit 5d9724e

Please sign in to comment.