PowerSploit
BloodHound-Legacy
PowerSploit | BloodHound-Legacy | |
---|---|---|
18 | 29 | |
8,062 | 10,104 | |
- | 0.9% | |
0.5 | 0.0 | |
over 4 years ago | 14 days ago | |
PowerShell | PowerShell | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PowerSploit
-
Powershell error message help from using Powerview.ps1
The correct thing to do was importing the Recon.psm1 module, as instructed in the PowerSploit's documentation.
-
Powerview.ps1 error help
I joined one of the clients to the domain, then downloaded powerview.ps1 from https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1).
-
“Malicious” powershell commands for demo
You can grab PowerSploit . Most of the scripts will trigger powershell's Antimalware Scan Interface (AMSI) if you have real-time protection enabled. To be sure, use Invoke-Mimikatz.ps1 as AMSI blocks certain keywords like “invoke-mimikatz” or “amsiutils” since they are widely known to be used for exploitation. So I suggest you use them. Note that you can hide some malicious scripts by running an amsi bypass, thats for another day.
-
4 AD Attacks and How to Protect Against Them
PowerSploit
- Junior Pen Tester - CTF interview
-
Compromising Plaintext Passwords in Active Directory
Because the SYSVOL share is open to Authenticated Users, any user in the organization can read the files stored there. Therefore, any user account can find and decrypt the Group Policy file and thereby gain access to the plaintext passwords for Administrator accounts. The PowerSploit command Get-GPPPassword will find and decrypt these passwords for you.
-
Manipulate Zip/7Zip Archives w/o Disk Write
Please see PowerShellMafia/PowerSploit for more information about how to run an EXE from the memory. Find examples here: GitHub Examples
-
Extracting Service Account Passwords with Kerberoasting
Get-NetUser command of PowerSploit
-
Privilege Escalation with DCShadow
The first step is to find out what trusts exist. There are several ways to do this, but two we will leverage through PowerShell are the PowerSploit framework and the Active Directory PowerShell module.
-
Can i use PowerShell to gain admin privileges
Short answer; yes. See PowerUp.ps1: https://github.com/PowerShellMafia/PowerSploit/blob/master/Privesc/PowerUp.ps1
BloodHound-Legacy
-
Defenders think in lists. Attackers think in graphs. So attackers win
Defenders also think in graphs. Matter of fact, good defenders think like attackers.
Case in point, to contradict the author of this post directly:
https://github.com/BloodHoundAD/BloodHound
BloodHound is primarily a defender tool, that uses graph theory to help defenders find attack paths. But attackers also use it to help them find the shortest path to owning an AD domain. BloodHound is used in by a lot of threat actors as part of those news stories where the entire company is ransomwared. But what you don't see is, in a lot of companies that don't get totally ransomwared, there is a chance defenders are also using BloodHound to find and fix attack paths.
-
Dealing with large BloodHound datasets
Tool Language Url Notes SharpHound .NET 4 executable https://github.com/BloodHoundAD/SharpHound/ Also possible to be executed in-memory using Cobalt Strike, check @william_knows’ blog post AzureHound PowerShell https://github.com/BloodHoundAD/AzureHound/ Specifically for Azure environments, outside of the scope of this article SharpHound.ps1 PowerShell https://github.com/BloodHoundAD/BloodHound/ Available from the Collectors folder. Using PowerShell reflectively loads the embedded SharpHound.exe .NET executable. It exposes the Invoke-BloodHound function which calls the main function of the SharpHound binary. SharpHound.py Python https://github.com/fox-it/BloodHound.py/ Python version of SharpHound ADExplorerSnapshot.py Python https://github.com/c3c/ADExplorerSnapshot.py/ Convert Sysinternals ADExplorer snapshots to BloodHound-compatible JSON files. BOFHound Python https://github.com/fortalice/bofhound/ Generate BloodHound compatible JSON from logs written by ldapsearch BOF and pyldapsearch.
- Problem enumerating/connecting using Bloodhound on my Kali VM
-
User that is not a member of Domain Admins Group anymore is able to add members to that group.
Run Sharphound and bloodhound Bloodhound. It is excellent in determining relationships and privilege escalation paths that would allow the access.
-
4 AD Attacks and How to Protect Against Them
BloodHound is a web application that identifies and visualizes attack paths in Active Directory environments. It identifies the fastest series of steps from any AD account or machine to a desired target, such as membership in the Domain Admins group. Regularly checking your AD using BloodHound can be an effective defense mechanism that helps you ensure that compromising an account or machine doesn’t enable an attacker to compromise your domain.
- Junior Pen Tester - CTF interview
-
What are some of the most frequently used (or favorite) tools in your toolbox?
Bloodhound - AD attack path management/enumeration
-
AD Enumeration room Bloodhound part is broken?
I solved it by grabbing a new version of Sharphound.ps1 on the attack box, you can find it here: https://github.com/BloodHoundAD/BloodHound/tree/master/Collectors.
-
BSides SLC: Community, Fun, And Security Best Practices In Salt Lake City
No live event would be complete without sessions. There were over 30 speakers who covered topics from starting a career in InfoSec, to in-depth sessions about using specific tools like BloodHound. Here are just a few high-level themes and highlights. All of these sessions, including mine, will be made available on the BSidesSLC YouTube channel soon.
-
Creating a jump host in 2023
If you're planning to use Active Directory and/or Azure AD, run ADRecon/AzureADRecon and Bloodhound frequently and review in depth. Run ScoutSuite frequently and review as part of a normal operational cycle (e.g., at weekly team meetings make the results available and set aside 15 minutes to discuss and make assignments). Look critically at where these three tools overlap within two or three degrees of separation from your jump hosts (e.g., hosts/nodes that are one or two devices away and users/security groups that are one or two devices away) for help prioritizing when you have too many high-risk/high-impact items to look through.
What are some alternatives?
DSInternals - Directory Services Internals (DSInternals) PowerShell Module and Framework
pingcastle - PingCastle - Get Active Directory Security at 80% in 20% of the time
ADRecon - ADRecon is a tool which gathers information about the Active Directory and generates a report which can provide a holistic picture of the current state of the target AD environment.
Adalanche - Attack Graph Visualizer and Explorer (Active Directory) ...Who's *really* Domain Admin?
BeRoot - Privilege Escalation Project - Windows / Linux / Mac