Suspicious File Creation In Uncommon AppData Folder

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects the creation of suspicious files and folders inside the user's AppData folder but not inside any of the common and well known directories (Local, Romaing, LocalLow). This method could be used as a method to bypass detection who exclude the AppData folder in fear of FPs

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "File Created or Modified" AND ((FILENAME startswith "C:\Users" OR OBJECTNAME startswith "C:\Users") AND (FILENAME contains "\AppData" OR OBJECTNAME contains "\AppData") AND (FILENAME endswith ".bat,.cmd,.cpl,.dll,.exe,.hta,.iso,.lnk,.msi,.ps1,.psm1,.scr,.vbe,.vbs" OR OBJECTNAME endswith ".bat,.cmd,.cpl,.dll,.exe,.hta,.iso,.lnk,.msi,.ps1,.psm1,.scr,.vbe,.vbs")) AND ((FILENAME notstartswith "C:\Users" AND OBJECTNAME notstartswith "C:\Users") OR (FILENAME notcontains "\AppData\Local\,\AppData\LocalLow\,\AppData\Roaming" AND OBJECTNAME notcontains "\AppData\Local\,\AppData\LocalLow\,\AppData\Roaming")) select Action1.HOSTNAME,Action1.MESSAGE,Action1.USERNAME,Action1.DOMAIN,Action1.OBJECTNAME,Action1.FILENAME,Action1.PROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)