Detectionmediumtest

OneNote Attachment File Dropped In Suspicious Location

Detects creation of files with the ".one"/".onepkg" extension in suspicious or uncommon locations. This could be a sign of attackers abusing OneNote attachments

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2023-01-22Updated 2023-09-197fd164ba-126a-4d9c-9392-0d4f7c243df0windows
Log Source
WindowsFile Event
ProductWindows← raw: windows
CategoryFile Event← raw: file_event

Events for file system activity including creation, modification, and deletion.

Detection Logic
Detection Logic2 selectors
detection:
    selection:
        TargetFilename|contains:
            # Note: add more common locations for drops such as download folders and the like. Or baseline legitimate locations and alert on everything else
            - '\AppData\Local\Temp\'
            - '\Users\Public\'
            - '\Windows\Temp\'
            - ':\Temp\'
        TargetFilename|endswith:
            - '.one'
            - '.onepkg'
    filter_main_onenote:
        Image|contains: ':\Program Files\Microsoft Office\'
        Image|endswith: '\ONENOTE.EXE'
    condition: selection and not 1 of filter_main_*
False Positives

Legitimate usage of ".one" or ".onepkg" files from those locations

MITRE ATT&CK
Rule Metadata
Rule ID
7fd164ba-126a-4d9c-9392-0d4f7c243df0
Status
test
Level
medium
Type
Detection
Created
2023-01-22
Modified
2023-09-19
Path
rules/windows/file/file_event/file_event_win_office_onenote_files_in_susp_locations.yml
Raw Tags
attack.stealth
View on GitHub