SlideShare a Scribd company logo
Introducing  The Malware Script Detector (MSD) By d0ubl3_h3lix http ://yehg.net Tue Feb 19 2008
Agenda Counter Strategy Overview XSS Coverage Versioning Info Standalone MSD Detection Screenshots  Why MSD? Weaknesses
Counter Strategy Using the Power of JavaScript, Malware Script Detector detects JavaScript Malwares which use the Power of JavaScript
Overview Run on Gecko browsers (Firefox, Flock, Netscape, …etc) GreaseMonkey addon needed Acted as Browser IDS Intended for Web Client Security Recommended for every web surfer Please don’t underestimate MSD by looking its simplest source code
Overview (Cont.) Coded mainly to detect today’s popular powerfully malicious JavaScript attack frameworks: XSS-Proxy, XSS-Shell, AttackAPI, BeEF Version 2 was enhanced to prevent most XSS threats and includes XSS Attack Blacklists based on Firefox XSS-Warning addon
XSS Coverage MSD was coded to detect the following XSS exploitation areas: data: protocol exploitation like    -  data:image/gif   -  data:text/javascript   -  data:text/html jar: protocol exploitation file: protocol exploitation by locally saved malicious web pages
XSS Coverage Other protocol exploitation such as vbscript:, livescript:, mocha:, ftp:, mocha:, telnet:, ftp:, res:, x-gadget(MS-Vista), call (VOIP), aim: …etc unicode injection utf-7,null-byte (\00), black slash injection (u\r\l), comments star slash injection (/* */),injection like \u00, \x00....etc
XSS Coverage MSD was thoroughly tested with:   - RSnake’s XSS CheatSheet   - XSS-ME Addon Attack List    - Dabbledb.com’s Xssdb list  - CAL9000 XSS List
Versioning Info GreaseMonkey Version Main Objective: Alert XSS Attacks to users Must be Installed by users Requires Gecko Browser + GreaseMonkey Addon Version 1 – Detect Malware Scripts Version 2 – Detect Malware Scripts + Prevailing XSS
Versioning Info Standalone Version Main Objective: Alert XSS Attacks to users & webmaster Must be Deployed by web developers Browser-Independent No Checking if users have GreaseMonkey version Version 1 – Detect Malware Scripts + Prevailing XSS
Standalone MSD Standalone version was created as single .js file for web developers  To embed in their footer files  To notify both visitors and webmasters of XSS injection attempts & attacks Browser-independent unlike GreaseMonkey Script version Intended for web application security as a portable lightweight solution
 
Detection Screenshots
Why MSD? XSS Payloads like http://victim/?q=“><script>eval(location.hash.substr(1))</script>#xxxxxxxxxxxxxxxxxxxxxxMaliciousxxxxxPayloadsxxxxxxxxxxxxxxxxxxxxMaliciousxxxxxPayloadsxxxxxxxMaliciousxxxxxPayloadsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx…..etc
Why MSD? (Cont.) Never get DETECTED by  Web Server-level Firewall/IDS/IPS Because the code is Totally Executed at Client’s Browser
Why MSD? (Cont.) Malicious sites intentionally embed malicious JavaScript attack frameworks Bad guys 0wn web server boxes, and secretly install those attack frameworks as web backdoors or trojans to abuse users
Why MSD? (Cont.) No ways to detect such Malware scripts unless we check HTML source codes Disabling JavaScript, Using NoScript/VMware, Always Checking source codes are not effective solutions for most cases According to above scenarios, MSD becomes a nice solution for us
  Oh, But …
Weaknesses Doesn’t check POSTS/COOKIES variables No guarantee for full protection of XSS Many ways to bypass MSD XSS Filtering needs to be updated regularly where extensive filtering may cause false alerts  and much annoyance to users
Where Can I get it ?   Check Under Tools Section http://yehg.net/lab/#tools.greasemonkey If you wish to contribute, there is a smoketest page. Insert your own XSS payload to defeat MSD. Notify me of whenever new Attack frameworks are created
Special Thanks Goes to Mario, http://php-ids.org Secgeek, http://www.secgeek s .com Andres Riancho , http://w3af.sf.net For encouragements and suggestions
Reference XSS Attacks & Defenses  by PDP, RSnake, Jeremiah, Aton Rager, Seth Fogie Syngress Publishing ISBN-13:987-1-59749-154-9
Thank you!

More Related Content

PPTX
Cross site scripting
PPTX
Cross-Site Scripting (XSS)
PDF
XSS Injection Vulnerabilities
PPTX
Cross Site Scripting (XSS)
PDF
Cross site scripting
PPT
Identifying Cross Site Scripting Vulnerabilities in Web Applications
PPT
Cross site scripting (xss)
Cross site scripting
Cross-Site Scripting (XSS)
XSS Injection Vulnerabilities
Cross Site Scripting (XSS)
Cross site scripting
Identifying Cross Site Scripting Vulnerabilities in Web Applications
Cross site scripting (xss)

What's hot (20)

PPTX
Cross Site Scripting(XSS)
PPTX
Reflective and Stored XSS- Cross Site Scripting
PPT
Xss.e xopresentation from eXo SEA
PDF
Cross site scripting (xss) attacks issues and defense - by sandeep kumbhar
PPTX
Cross site scripting
PPTX
Xss what the heck-!
PPTX
XSS- an application security vulnerability
PPT
Xss ppt
PPTX
Cross Site Scripting
PDF
The Cross Site Scripting Guide
PPTX
STORED XSS IN DVWA
PPTX
Cross site scripting (xss)
PPTX
Cross Site Scripting Defense Presentation
PDF
XSS-Alert-Pentration testing tool
PDF
BROWSER UI SECURITY INDICATORS
PPTX
OWASP Khartoum - Top 10 A5 - 7th meeting - Cross Site Request Forgery
PDF
Cross site scripting attacks and defenses
PPTX
Cross Site Scripting (XSS)
Cross Site Scripting(XSS)
Reflective and Stored XSS- Cross Site Scripting
Xss.e xopresentation from eXo SEA
Cross site scripting (xss) attacks issues and defense - by sandeep kumbhar
Cross site scripting
Xss what the heck-!
XSS- an application security vulnerability
Xss ppt
Cross Site Scripting
The Cross Site Scripting Guide
STORED XSS IN DVWA
Cross site scripting (xss)
Cross Site Scripting Defense Presentation
XSS-Alert-Pentration testing tool
BROWSER UI SECURITY INDICATORS
OWASP Khartoum - Top 10 A5 - 7th meeting - Cross Site Request Forgery
Cross site scripting attacks and defenses
Cross Site Scripting (XSS)
Ad

Viewers also liked (11)

PPS
What A Perfect Ethical Hacker!
PDF
Security Design Patterns
PPT
Web Security Patterns - Jazoon 2010 - Zurich
PPT
Security patterns and model driven architecture
PDF
Patterns and Antipatterns in Enterprise Security
PPT
3. security architecture and models
PPSX
2 Security Architecture+Design
PDF
Enterprise Security Architecture
PPTX
Security models for security architecture
PPTX
Security architecture frameworks
PDF
Enterprise Security Architecture
What A Perfect Ethical Hacker!
Security Design Patterns
Web Security Patterns - Jazoon 2010 - Zurich
Security patterns and model driven architecture
Patterns and Antipatterns in Enterprise Security
3. security architecture and models
2 Security Architecture+Design
Enterprise Security Architecture
Security models for security architecture
Security architecture frameworks
Enterprise Security Architecture
Ad

Similar to Introducing Msd (20)

PDF
Antiviruxss
PDF
Introduction to Cross Site Scripting ( XSS )
PPTX
A Survey of Exploitation and Detection Methods of XSS Vulnerabilities.pptx
PPTX
Cross Site Scripting ( XSS)
DOCX
Cisco WebEx vulnerability: it’s a kind of magic
PPT
4.Xss
PDF
Complete xss walkthrough
DOCX
Continuing in your role as a human service provider for your local.docx
PDF
React security vulnerabilities
PPTX
Cross site scripting
PDF
SeanRobertsThesis
PDF
ImageSubXSS: an image substitute technique to prevent Cross-Site Scripting at...
PPTX
Hack miami emiliocasbas
PDF
Xss 101 by-sai-shanthan
PPT
Layer 7 Technologies: Web Services Hacking And Hardening
PDF
XSS.pdf
PDF
XSS.pdf
PDF
I'm in ur browser, pwning your stuff - Attacking (with) Google Chrome Extensions
PDF
Analysis of XSS attack Mitigation techniques based on Platforms and Browsers
Antiviruxss
Introduction to Cross Site Scripting ( XSS )
A Survey of Exploitation and Detection Methods of XSS Vulnerabilities.pptx
Cross Site Scripting ( XSS)
Cisco WebEx vulnerability: it’s a kind of magic
4.Xss
Complete xss walkthrough
Continuing in your role as a human service provider for your local.docx
React security vulnerabilities
Cross site scripting
SeanRobertsThesis
ImageSubXSS: an image substitute technique to prevent Cross-Site Scripting at...
Hack miami emiliocasbas
Xss 101 by-sai-shanthan
Layer 7 Technologies: Web Services Hacking And Hardening
XSS.pdf
XSS.pdf
I'm in ur browser, pwning your stuff - Attacking (with) Google Chrome Extensions
Analysis of XSS attack Mitigation techniques based on Platforms and Browsers

More from Aung Khant (20)

PDF
Securing Php App
PDF
Securing Web Server Ibm
PDF
Security Code Review
PDF
Security Engineering Executive
PDF
Security Engineeringwith Patterns
PDF
Security Web Servers
PDF
Security Testing Web App
PDF
Session Fixation
PDF
Sql Injection Paper
PPT
Sql Injection Adv Owasp
PDF
Php Security Iissues
PDF
Sql Injection White Paper
PDF
S Shah Web20
PDF
S Vector4 Web App Sec Management
PDF
Php Security Value1
PDF
Privilege Escalation
PDF
Php Security Workshop
PDF
Preventing Xs Sin Perl Apache
PDF
Protecting Web App
PDF
Protecting Web Based Applications
Securing Php App
Securing Web Server Ibm
Security Code Review
Security Engineering Executive
Security Engineeringwith Patterns
Security Web Servers
Security Testing Web App
Session Fixation
Sql Injection Paper
Sql Injection Adv Owasp
Php Security Iissues
Sql Injection White Paper
S Shah Web20
S Vector4 Web App Sec Management
Php Security Value1
Privilege Escalation
Php Security Workshop
Preventing Xs Sin Perl Apache
Protecting Web App
Protecting Web Based Applications

Recently uploaded (20)

PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Mushroom cultivation and it's methods.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
August Patch Tuesday
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Spectroscopy.pptx food analysis technology
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
A Presentation on Artificial Intelligence
Heart disease approach using modified random forest and particle swarm optimi...
Mushroom cultivation and it's methods.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine Learning_overview_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
August Patch Tuesday
Programs and apps: productivity, graphics, security and other tools
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
1. Introduction to Computer Programming.pptx
Spectroscopy.pptx food analysis technology
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
A Presentation on Artificial Intelligence

Introducing Msd

  • 1. Introducing The Malware Script Detector (MSD) By d0ubl3_h3lix http ://yehg.net Tue Feb 19 2008
  • 2. Agenda Counter Strategy Overview XSS Coverage Versioning Info Standalone MSD Detection Screenshots Why MSD? Weaknesses
  • 3. Counter Strategy Using the Power of JavaScript, Malware Script Detector detects JavaScript Malwares which use the Power of JavaScript
  • 4. Overview Run on Gecko browsers (Firefox, Flock, Netscape, …etc) GreaseMonkey addon needed Acted as Browser IDS Intended for Web Client Security Recommended for every web surfer Please don’t underestimate MSD by looking its simplest source code
  • 5. Overview (Cont.) Coded mainly to detect today’s popular powerfully malicious JavaScript attack frameworks: XSS-Proxy, XSS-Shell, AttackAPI, BeEF Version 2 was enhanced to prevent most XSS threats and includes XSS Attack Blacklists based on Firefox XSS-Warning addon
  • 6. XSS Coverage MSD was coded to detect the following XSS exploitation areas: data: protocol exploitation like - data:image/gif - data:text/javascript - data:text/html jar: protocol exploitation file: protocol exploitation by locally saved malicious web pages
  • 7. XSS Coverage Other protocol exploitation such as vbscript:, livescript:, mocha:, ftp:, mocha:, telnet:, ftp:, res:, x-gadget(MS-Vista), call (VOIP), aim: …etc unicode injection utf-7,null-byte (\00), black slash injection (u\r\l), comments star slash injection (/* */),injection like \u00, \x00....etc
  • 8. XSS Coverage MSD was thoroughly tested with: - RSnake’s XSS CheatSheet - XSS-ME Addon Attack List - Dabbledb.com’s Xssdb list - CAL9000 XSS List
  • 9. Versioning Info GreaseMonkey Version Main Objective: Alert XSS Attacks to users Must be Installed by users Requires Gecko Browser + GreaseMonkey Addon Version 1 – Detect Malware Scripts Version 2 – Detect Malware Scripts + Prevailing XSS
  • 10. Versioning Info Standalone Version Main Objective: Alert XSS Attacks to users & webmaster Must be Deployed by web developers Browser-Independent No Checking if users have GreaseMonkey version Version 1 – Detect Malware Scripts + Prevailing XSS
  • 11. Standalone MSD Standalone version was created as single .js file for web developers To embed in their footer files To notify both visitors and webmasters of XSS injection attempts & attacks Browser-independent unlike GreaseMonkey Script version Intended for web application security as a portable lightweight solution
  • 12.  
  • 14. Why MSD? XSS Payloads like http://victim/?q=“><script>eval(location.hash.substr(1))</script>#xxxxxxxxxxxxxxxxxxxxxxMaliciousxxxxxPayloadsxxxxxxxxxxxxxxxxxxxxMaliciousxxxxxPayloadsxxxxxxxMaliciousxxxxxPayloadsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx…..etc
  • 15. Why MSD? (Cont.) Never get DETECTED by Web Server-level Firewall/IDS/IPS Because the code is Totally Executed at Client’s Browser
  • 16. Why MSD? (Cont.) Malicious sites intentionally embed malicious JavaScript attack frameworks Bad guys 0wn web server boxes, and secretly install those attack frameworks as web backdoors or trojans to abuse users
  • 17. Why MSD? (Cont.) No ways to detect such Malware scripts unless we check HTML source codes Disabling JavaScript, Using NoScript/VMware, Always Checking source codes are not effective solutions for most cases According to above scenarios, MSD becomes a nice solution for us
  • 18. Oh, But …
  • 19. Weaknesses Doesn’t check POSTS/COOKIES variables No guarantee for full protection of XSS Many ways to bypass MSD XSS Filtering needs to be updated regularly where extensive filtering may cause false alerts and much annoyance to users
  • 20. Where Can I get it ? Check Under Tools Section http://yehg.net/lab/#tools.greasemonkey If you wish to contribute, there is a smoketest page. Insert your own XSS payload to defeat MSD. Notify me of whenever new Attack frameworks are created
  • 21. Special Thanks Goes to Mario, http://php-ids.org Secgeek, http://www.secgeek s .com Andres Riancho , http://w3af.sf.net For encouragements and suggestions
  • 22. Reference XSS Attacks & Defenses by PDP, RSnake, Jeremiah, Aton Rager, Seth Fogie Syngress Publishing ISBN-13:987-1-59749-154-9

Editor's Notes