-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Browser Data Extraction for Chromium- and Gecko-based Browsers #19506
base: master
Are you sure you want to change the base?
Conversation
This post-exploitation module extracts sensitive browser data from both Chromium-based and Gecko-based browsers on the target system. It supports the decryption of passwords and cookies using Windows Data Protection API (DPAPI) and can extract additional data such as browsing history, keyword search history, download history, autofill data, and credit card information.
Co-authored-by: Julien Voisin <[email protected]>
Co-authored-by: Valentin Lobstein <[email protected]>
Co-authored-by: Valentin Lobstein <[email protected]>
Co-authored-by: Valentin Lobstein <[email protected]>
# Check for the "v20" prefix that indicates App-Bound encryption, which can't be decrypted yet. | ||
# https://security.googleblog.com/2024/07/improving-security-of-chrome-cookies-on.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible without too much hassle if you're up to it:
https://gist.github.com/snovvcrash/caded55a318bbefcb6cc9ee30e82f824 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, seen it, cheers. Had it working before but it's a bit messy with railgun to be honest. But got it mostly working just need to refine it. The coming week will be super busy professionally but it'll come. :)
Looking at existing modules, I believe the followings could potentially be marked obsolete:
|
…r data extraction
This post-exploitation module extracts sensitive browser data from both Chromium-based and Gecko-based browsers on the target system. It supports the decryption of passwords and cookies using Windows Data Protection API (DPAPI) and can extract additional data such as browsing history, keyword search history, download history, autofill data, credit card information, browser cache and installed extensions.
Supported Browsers
Chromium-Based Browsers
Extracted Data
Gecko-Based Browsers
Extracted Data
Verification Steps
msfconsole
.use post/windows/gather/enum_browsers
set SESSION <session id>
set BROWSER_TYPE <chromium|gecko|all|string>
(default isall
).set VERBOSE true
set KILL_BROWSER true
set EXTRACT_CACHE true
explorer.exe
before extraction:set USER_MIGRATION true
run
Options
false
.explorer.exe
(if available) before extracting data. This ensures the module is run in the user's context, avoiding potential access issues for user-specific data. Default isfalse
.all
: Extracts data from both Chromium and Gecko browsers. This is the default setting.chromium
: Extracts data only from Chromium-based browsers.gecko
: Extracts data only from Gecko-based browsers.string
: Extracts data from browsers matching the string supplied (e.g., firefox)KILL_BROWSER
totrue
for best results, as this prevents file access issues.false
.Example Output
Normal Session
Select only specific browser for extraction
Using KILL_BROWSER to Resolve File Access Issues
If the browser processes are running, cookies and other files may be locked and inaccessible. Use the
KILL_BROWSER
option to kill browsers before extraction:This will kill any selected & running browser processes and avoid file access issues.
Using EXTRACT_CACHE to extract browser cache
Extract browser cache (may take a long time). It is recommended to set
KILL_BROWSER
totrue
for best results, as this prevents file access issues.Using USER_MIGRATION to Run in User Context
If you want to ensure that the session runs in the user context (e.g.,
explorer.exe
) to avoid access issues, enable theUSER_MIGRATION
option:Using VERBOSE Mode for Detailed Output
If you want to see each step of the extraction and decryption process, enable verbose mode:
This will show detailed information, such as: