Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 0bd4183

Browse files
committed
added locate-shlayer-payload-decryption-activity.md
1 parent 055c1f0 commit 0bd4183

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Locate Shlayer payload decryption activity
2+
3+
This query was originally published in the threat analytics report, *OSX/Shlayer sustains adware push*.
4+
5+
[Shlayer](https://www.intego.com/mac-security-blog/osxshlayer-new-mac-malware-comes-out-of-its-shell/) is adware that spies on users' search terms, and redirects network traffic to serve the user attacker-controlled search results containing ads.
6+
7+
The following query locates activity associated with the Shlayer payload decrypter.
8+
9+
## Query
10+
11+
```Kusto
12+
// Find use of the Shlayer OpenSSL command to decode and decrypt a payload
13+
DeviceProcessEvents
14+
| where Timestamp > ago(7d)
15+
| where FileName =~ "openssl"
16+
and ProcessCommandLine has "-base64" and
17+
ProcessCommandLine has "-out" and
18+
ProcessCommandLine has "-nosalt"
19+
and ProcessCommandLine has_any("-aes256", "-aes-256")
20+
```
21+
22+
## Category
23+
24+
This query can be used to detect the following attack techniques and tactics ([see MITRE ATT&CK framework](https://attack.mitre.org/)) or security configuration states.
25+
26+
| Technique, tactic, or state | Covered? (v=yes) | Notes |
27+
|-|-|-|
28+
| Initial access | | |
29+
| Execution | v | Our tests indicate that this query might return a few rare matches to normal activity. |
30+
| Persistence | | |
31+
| Privilege escalation | | |
32+
| Defense evasion | | |
33+
| Credential Access | | |
34+
| Discovery | | |
35+
| Lateral movement | | |
36+
| Collection | | |
37+
| Command and control | | |
38+
| Exfiltration | | |
39+
| Impact | | |
40+
| Vulnerability | | |
41+
| Misconfiguration | | |
42+
| Malware, component | | |
43+
44+
## Contributor info
45+
46+
**Contributor:** Microsoft Threat Protection team

0 commit comments

Comments
 (0)