Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create net_connection_win_notion.yml
created a rule to detecdt possible C2 coms using Notion SaaS as the C2 endpoint.
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
rules/windows/network_connection/net_connection_win_notion.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
title: Suspicious network connection to Notion API | ||
id: 7e9cf7b6-e827-11ed-a05b-15959c120003 | ||
status: experimental | ||
description: Detects a non-browser process interacting with the Notion API which could indicate the use of a covert C2 such as OffensiveNotion C2 | ||
references: | ||
- https://github.com/mttaggart/OffensiveNotion | ||
- https://medium.com/@huskyhacks.mk/we-put-a-c2-in-your-notetaking-app-offensivenotion-3e933bace332 | ||
author: Gavin Knapp | ||
date: 2023/05/03 | ||
tags: | ||
- attack.command_and_control | ||
- attack.t1102 | ||
logsource: | ||
product: windows | ||
category: network_connection | ||
detection: | ||
selection: | ||
DestinationHostname|contains: | ||
- 'api.notion.com' | ||
filter_optional_brave: | ||
Image|endswith: '\brave.exe' | ||
filter_optional_chrome: | ||
Image: | ||
- 'C:\Program Files\Google\Chrome\Application\chrome.exe' | ||
- 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe' | ||
filter_optional_notion: | ||
Image: | ||
- 'C:\Users\bwcdemoadmin\AppData\Local\Programs\Notion\Notion.exe' | ||
filter_optional_firefox: | ||
Image: | ||
- 'C:\Program Files\Mozilla Firefox\firefox.exe' | ||
- 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe' | ||
filter_optional_ie: | ||
Image: | ||
- 'C:\Program Files (x86)\Internet Explorer\iexplore.exe' | ||
- 'C:\Program Files\Internet Explorer\iexplore.exe' | ||
filter_optional_maxthon: | ||
Image|endswith: '\maxthon.exe' | ||
filter_optional_edge_1: | ||
- Image|startswith: 'C:\Program Files (x86)\Microsoft\EdgeWebView\Application\' | ||
- Image|endswith: '\WindowsApps\MicrosoftEdge.exe' | ||
- Image: | ||
- 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' | ||
- 'C:\Program Files\Microsoft\Edge\Application\msedge.exe' | ||
filter_optional_edge_2: | ||
Image|startswith: | ||
- 'C:\Program Files (x86)\Microsoft\EdgeCore\' | ||
- 'C:\Program Files\Microsoft\EdgeCore\' | ||
Image|endswith: | ||
- '\msedge.exe' | ||
- '\msedgewebview2.exe' | ||
filter_optional_opera: | ||
Image|endswith: '\opera.exe' | ||
filter_optional_safari: | ||
Image|endswith: '\safari.exe' | ||
filter_optional_seamonkey: | ||
Image|endswith: '\seamonkey.exe' | ||
filter_optional_vivaldi: | ||
Image|endswith: '\vivaldi.exe' | ||
filter_optional_whale: | ||
Image|endswith: '\whale.exe' | ||
condition: selection and not 1 of filter_optional_* | ||
falsepositives: | ||
- Legitimate applications communicating with the "api.notion.com" endpoint that are not already in the exclusion list. The desktop and browser applications do not appear to be using the API by default unless integrations are configured. | ||
level: low |