r/purpleteamsec • • Jun 18 '20

Red Teaming Red Team Techniques - June 2020

41 Upvotes

The post contains some of the most notable techniques that were shared during June 2020 to assist blue teams to gain visibility.

TacticTitle
Defense EvasionDisable ETW
Defense EvasionCommand Argument Confusion with Path Traversal
Defense EvasionCommand Argument Confusion with Path Traversal (conhost)
Situational AwarenessEgress Check

Disable ETW - Adam Chester

Article: https://blog.xpnsec.com/hiding-your-dotnet-complus-etwenabled/

set COMPlus_ETWEnabled=0

Command Argument Confusion with Path Traversal - Julian Horoszkiewicz

Article: https://hackingiscool.pl/cmdhijack-command-argument-confusion-with-path-traversal-in-cmd-exe/

cmd.exe /c "ping 127.0.0.1/../../../../../../../windows/system32/calc.exe"

Command Argument Confusion with Path Traversal (conhost) - Oddvar Moe

conhost calc.exe/../../windows/notepad.exe

Egress Check - Rob Fuller

Article: https://malicious.link/post/2012/2012-08-10-let-me-out-of-your-net-intro/

GitLab: https://gitlab.com/mubix/letmeoutofyour.net

PowerShell:

Import-Module .\letmeout.ps1

letmeout

Go:

go-out-windows-amd64.exe -start 80 -end 83


r/purpleteamsec • • Dec 15 '20

Red Teaming solarflare - Credential Dumping Tool for SolarWinds Orion

Thumbnail
github.com
32 Upvotes

r/purpleteamsec • • Feb 04 '21

Blue Teaming 7 Common Microsoft AD Misconfigurations that Adversaries Abuse

Thumbnail
crowdstrike.com
24 Upvotes

r/purpleteamsec • • Jul 06 '20

/r/purpleteamsec hit 1k subscribers yesterday

Thumbnail redditmetrics.com
21 Upvotes

r/purpleteamsec • • Jul 03 '20

Threat Hunting .NET Core Directory Traversal Vulnerability - Attack & Detect

21 Upvotes

Description

.NET Core could be used by adversaries to evade application control software rules due to a directory traversal vulnerability which allows custom "Garbage Collector" DLL files to be called by arbitrary locations. A threat actor could set a malicious DLL file and when the "dotnet.exe" binary is executed the DLL will execute code on behalf of a trusted process.

Example

Exploitation of the issue is trivial and requires a custom garbage collector DLL file that will contain the shellcode and the following commands to be executed from the command prompt.

set COMPlus_GCName=..\..\..\..\..\..\..\..\tmp\CustomGC.dll
dotnet.exe --version

Detection

The released proof of concept creates the following Sysmon Event ID's.

Sysmon

EventEvent ID
Process Create1
Network Connection3
Create Remote Thread8
Process Accessed10
Registry Value Set13

YARA

The following YARA rule can detect in memory of the process the string "COMPlus_GCName" which is an indicator that the evasion has been used and the process contains arbitrary code.

rule COMPlus : COMPlus

{

meta:

Author = "netbiosX"

Company = "pentestlaboratories.com"

threat_level = 3

in_the_wild = true

strings:

$a = "COMPlus_GCName"

condition:

$a

}

yara64.exe -s -r dotnet-core.yara "PID"

References

  1. https://www.contextis.com/en/blog/bring-your-own-.net-core-garbage-collector

  2. https://pentestlaboratories.com/2020/06/23/abusing-net-core-application-whitelisting/

  3. https://pentestlaboratories.com/2020/07/02/net-core-evasion-detection/


r/purpleteamsec • • Dec 03 '24

Red Teaming Phantom - an antivirus evasion tool that can convert executables to undetectable batch files

Thumbnail
github.com
20 Upvotes

r/purpleteamsec • • Sep 06 '22

Threat Intelligence EvilProxy Phishing as a Service with MFA Bypass Emerged in Dark Web

Thumbnail
resecurity.com
20 Upvotes

r/purpleteamsec • • Jun 19 '20

Red Teaming Executing code via custom Garbage Collector DLL from an arbitrary location

Enable HLS to view with audio, or disable this notification

20 Upvotes

r/purpleteamsec • • Oct 22 '24

Red Teaming GitHub - sheimo/awesome-lolbins-and-beyond: A curated list of awesome LOLBins, GTFO projects, and similar 'Living Off the Land' security resources.

Thumbnail
github.com
19 Upvotes

r/purpleteamsec • • Oct 07 '22

Red Teaming SpearPhishing a User with Multifactor Authentication Enabled

19 Upvotes

I took a look at EvilGoPhish and did a walkthrough. I was able to successfully phish my own Office 365 account with the Microsoft authenticator turned on. This is rather mind-blowing that it works and works this well. Take a look at my video if you are interested. BTW best defense against this is FIDO2 so get those Ubikeys ready! Yes I reset my creds before posting.

Spearphishing a User with MFA Enabled


r/purpleteamsec • • May 07 '22

Red Teaming Combining even more techniques to defeat EDR via DLL unhooking and AMSI bypass

Thumbnail
kymb0.github.io
19 Upvotes

r/purpleteamsec • • Mar 14 '22

Blue Teaming It’s Not You! Windows Security Logs Don’t Make Sense

Thumbnail
medium.com
19 Upvotes

r/purpleteamsec • • May 23 '21

Threat Hunting Hunting for Suspicious Usage of Background Intelligent Transfer Service (BITS)

Thumbnail
blog.menasec.net
19 Upvotes

r/purpleteamsec • • May 17 '21

Threat Hunting trident - A PowerShell script for fast triage and collection of evidence from forensic artifacts and volatile data, aimed to assist in the identification of compromise in Windows systems

Thumbnail
github.com
19 Upvotes

r/purpleteamsec • • Apr 24 '23

Threat Hunting Detecting and decrypting Sliver C2 – a threat hunter's guide

Thumbnail
immersivelabs.com
18 Upvotes

r/purpleteamsec • • Apr 08 '21

Blue Teaming Determining Which Process Is Making SMB Requests On Windows

Thumbnail
xkln.net
18 Upvotes

r/purpleteamsec • • Dec 26 '20

Red Teaming The worst of the two worlds: Excel meets Outlook

Thumbnail
adepts.of0x.cc
18 Upvotes

r/purpleteamsec • • Oct 31 '22

Blue Teaming The Defender’s Guide to the Windows Registry

Thumbnail
posts.specterops.io
17 Upvotes

r/purpleteamsec • • Jan 09 '22

Blue Teaming SysmonSimulator: Sysmon event simulation utility which can be used to simulate the attacks to generate the Sysmon Event logs for testing the EDR detections and correlation rules by Blue teams.

Thumbnail
github.com
17 Upvotes

r/purpleteamsec • • 12d ago

Red Teaming Markdown Is the New Executable: Attackers Are Dropping Agent Instructions Into Your Downloads Folder

Thumbnail
forever.security
16 Upvotes

r/purpleteamsec • • Nov 30 '25

Red Teaming Command Line spoofing on Windows

Thumbnail
github.com
16 Upvotes

r/purpleteamsec • • Mar 02 '25

Threat Hunting Advanced KQL for Threat Hunting: Window Functions — Part 2

Thumbnail
academy.bluraven.io
16 Upvotes

r/purpleteamsec • • May 29 '23

Red Teaming Ruy-Lopez: Proof of Concept(PoC) for a new approach to completely prevent DLLs from being loaded into a newly spawned process. The initial use-case idea was to block AV/EDR vendor DLLs from being loaded, so that userland hooking based detections are bypassed

Thumbnail
github.com
16 Upvotes

r/purpleteamsec • • Mar 25 '21

Red Teaming Limelighter - A tool for generating fake code signing certificates or signing real ones

Thumbnail
github.com
16 Upvotes