Skip to content
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

Duqu Check Forensics Module #3

Closed
wants to merge 1 commit into from
Closed

Duqu Check Forensics Module #3

wants to merge 1 commit into from

Conversation

threatagent
Copy link

This module performs registry checks related to Duqu malware based on Symantec report

Source: http://www.symantec.com/content/en/us/enterprise/media/security_response/whitepapers/w32_duqu_the_precursor_to_the_next_stuxnet.pdf

@hdm
Copy link
Contributor

hdm commented Nov 10, 2011

Instead of splitting the string based on commas, please just set this to an array.

  • query = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4"CFID",'
  • query += 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4\CFID,'
  • query += 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JmiNET3,'
  • query += 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JmiNET3\FILTER'
  •            match = 0
    
  •            print_status("Searching registry on #{sysinfo['Computer']} for Duqu attributes.")
    
  •            keys = query.split(/,/)
    

This should become:

queries = [
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4"CFID"',
[ .. ]
]

and queries.each do |k| [ .. ]

@hdm hdm closed this Nov 10, 2011
jlee-r7 pushed a commit that referenced this pull request Feb 20, 2013
Proposed changes for PrependMigrate
jlee-r7 pushed a commit that referenced this pull request Mar 5, 2013
Changes that I think make the psexec mixin better
jvazquez-r7 pushed a commit that referenced this pull request Mar 14, 2013
jvazquez-r7 pushed a commit that referenced this pull request Mar 30, 2013
cleanup for hp_system_management
schierlm pushed a commit to schierlm/metasploit-framework that referenced this pull request May 1, 2013
jlee-r7 pushed a commit that referenced this pull request May 15, 2013
jlee-r7 pushed a commit that referenced this pull request May 28, 2013
todb-r7 pushed a commit that referenced this pull request Jul 29, 2013
jvazquez-r7 pushed a commit that referenced this pull request Aug 8, 2013
jvazquez-r7 referenced this pull request in jvazquez-r7/metasploit-framework Aug 24, 2013
Merge in juan's improvements to module
jlee-r7 pushed a commit that referenced this pull request Aug 29, 2013
todb-r7 pushed a commit that referenced this pull request Sep 27, 2013
jvazquez-r7 pushed a commit that referenced this pull request Oct 22, 2013
jvazquez-r7 pushed a commit that referenced this pull request Dec 11, 2013
jvazquez-r7 pushed a commit that referenced this pull request Jan 2, 2014
Switch RHOSTS to TARGETS and add validation
wvu referenced this pull request in wvu/metasploit-framework Jan 9, 2014
Fix even moar outstanding issues
bturner-r7 added a commit that referenced this pull request Feb 26, 2014
Meatballs1 pushed a commit that referenced this pull request Apr 9, 2014
OJ pushed a commit that referenced this pull request May 4, 2014
wchen-r7 pushed a commit that referenced this pull request Sep 29, 2014
jhart-r7 pushed a commit that referenced this pull request Oct 22, 2014
Final cleanup of LastPass module -- track account, more *print_ cleaning
jhart-r7 pushed a commit that referenced this pull request Nov 4, 2014
Numerous cleanups for snmp_enumusers
kernelsmith pushed a commit that referenced this pull request Nov 10, 2014
modernizes & DRYs session/job ranges from kernelsmith
wchen-r7 pushed a commit that referenced this pull request Jan 15, 2015
Support configurable resource for getgodm_http_response_bof
jvazquez-r7 pushed a commit that referenced this pull request Mar 4, 2015
Land the merge. Code looks good to me! :-) thanks @jvazquez-r7
wvu pushed a commit that referenced this pull request Mar 10, 2015
Change print_status to print_error
jhart-r7 pushed a commit that referenced this pull request Dec 8, 2015
Additional cleanup of enum_av_excluded; support showing process and file extension exclusions
jhart-r7 pushed a commit that referenced this pull request Dec 15, 2015
Cleanup redis unauth_file_upload, move redis stuff to mixin
wvu pushed a commit that referenced this pull request Jan 23, 2016
Add targets to avoid ARCH_ALL payload confusion
wchen-r7 pushed a commit that referenced this pull request Jan 23, 2016
Do a version check for wordpress_xmlrpc_login
zeroSteiner pushed a commit that referenced this pull request Mar 16, 2016
Add get_file method and parse the server response
bwatters-r7 pushed a commit that referenced this pull request Jun 7, 2016
Suggested updates for style and clarity
egypt pushed a commit that referenced this pull request Jun 24, 2016
h00die pushed a commit that referenced this pull request Mar 20, 2017
rwhitcroft pushed a commit to rwhitcroft/metasploit-framework that referenced this pull request Apr 10, 2017
zeroSteiner pushed a commit that referenced this pull request Jun 6, 2017
bwatters-r7 pushed a commit that referenced this pull request Jun 7, 2017
Rubocop readability changes
todb-r7 pushed a commit that referenced this pull request Dec 18, 2017
busterb pushed a commit that referenced this pull request Mar 23, 2018
jbarnett-r7 pushed a commit that referenced this pull request Oct 26, 2018
jrobles-r7 pushed a commit to jrobles-r7/metasploit-framework that referenced this pull request Feb 15, 2019
asoto-r7 pushed a commit that referenced this pull request May 24, 2019
h00die pushed a commit that referenced this pull request Oct 11, 2019
bwatters-r7 pushed a commit that referenced this pull request Dec 12, 2019
Inject shellcode changes
cdelafuente-r7 added a commit to cdelafuente-r7/metasploit-framework that referenced this pull request Oct 30, 2020
smcintyre-r7 pushed a commit to smcintyre-r7/metasploit-framework that referenced this pull request Sep 13, 2022
smcintyre-r7 pushed a commit that referenced this pull request Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants