ISSA Journal Paper - JavaScript Infection Model

PreemInent truSted GlobAl
    ISSA                                                                                                                     ISSA Journal | November 2010
                    InformAtIon SecurIty communIty




JavaScript Infection model
By Aditya K Sood and Richard J. Enbody

Advancements in Web 2.0 technologies have enhanced Internet functionality but at the
same time have created numerous threats to the World Wide Web. this paper talks about
the negative nature of JavaScript, which is exploited heavily by malware writers to spread
infections throughout the online world.




Abstract                                                                          creasing4 in spite of versatile functions. These new technolo-
                                                                                  gies have made the Web flexible and robust by allowing the
Advancements in Web 2.0 technologies have enhanced In-                            inclusion of content from third-party sites and sending con-
ternet functionality but at the same time have created nu-                        tent to other domains. In reality, data from the third parties
merous threats to the World Wide Web. The biggest issue the                       cannot be verified against presence of potential malware. As
online world is grappling with is web malware, which is an                        a result malware can accompany the data back into the parent
outcome of intensive exploitation of web vulnerabilities. This                    website without restriction and continue spreading across the
paper talks about the negative nature of JavaScript, which                        Web. Security considerations have to be undertaken in the
is exploited heavily by malware writers to spread infections                      best possible manner to combat web exploitation.
throughout the online world.
                                                                                  new technologies
exploitation Shift                                                                With the advent of new technologies, the sphere of attack sur-


T
        here is always an element of discrepancy present be-                      face vulnerability has widened. The Web is getting exposed
        tween current and upcoming technologies. With the                         to identity theft, exploitation, scams, phishing, redirection
        advent of powerful operating system protection mech-                      vulnerabilities, cross site scripting (XSS), and cross site re-
anisms, the attack surface has shifted to web exploitation vec-                   quest forgery (CSRF).5 CSRF, for example, is a type of attack
tors because memory exploitation is becoming tougher for                          in which HTTP requests are sent in a stealth manner with-
the attackers. Technologies such as Microsoft Data Execution                      out the knowledge of user. This type of attack allows the at-
Protection (DEP),1 Address Space Layout Randomization                             tacker to execute commands and requests on user’s behalf.
(ASLR),2 and GS cookies3 have circumvented the attack and                         The inherent vulnerabilities in web applications are exploited
exploitation of system-level vulnerabilities. The use of string                   by various application injections such as PHP, ASP, LDAP,
functions is completely isolated from systems as they are con-                    SQL, and DOM (Document Object Model).6 The injections
sidered as a base for buffer overflow attacks. Exploitation has                   are widely used to manipulate the content, steal informa-
shifted from system vulnerabilities to web vulnerabilities.                       tion, and spread malware. One step ahead is HTTP Protocol
The attack landscape of the Web has a panorama of exploita-                       manipulation comprising of attack type Response Splitting,7
tions that are proliferating day by day. With the rise of blogs,                  which bypasses browser protection mechanisms by split-
wikis, atom feeds, RSS, and others, the insecurity level is in-                   ting the HTTP response from the server thereby fooling the
                                                                                  browser to interpret two responses instead of one.

                                                                                  4 RSS Attacks, http://www.techspot.com/news/20098-increased-rss-malware-attacks-
1 Data Execution Prevention, http://support.microsoft.com/kb/875352.                predicted.html.

2 Address Space Layout Randomization, http://blogs.technet.com/b/security/        5 Cross Site Request Forgery, https://www.isecpartners.com/files/CSRF_Paper.pdf.
  archive/2006/05/26/430538.aspx.                                                 6 DOM XSS, http://www.webappsec.org/projects/articles/071105.shtml.
3 GS, http://blogs.technet.com/b/srd/archive/2009/03/20/enhanced-gs-in-visual-    7 HTTP Response Splitting, http://www.securiteam.com/
  studio-2010.aspx.                                                                 securityreviews/5WP0E2KFGK.html.


                          ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only.
                                                                                                                                                                     31
JavaScript Infection model | Aditya K Sood and Richard J. Enbody                                                         ISSA Journal | November 2010


The cropping up of Web 2.0 and AJAX with JSON (JavaS-
cript Object Notation) has transformed the structure of
Web. Primarily, AJAX is used to interact with a spe-
cific set of events in a webpage through asynchronous
JavaScript calls, which are usually scattered through-
out the webpage. AJAX allows a number of events to
be executed in a single page from different domains.
Content validation is a big problem because content is
fetched from various sources. Further, AJAX serializes
all types of data elements into strings, which are used
by programming interfaces such as ASP, ASP.NET, etc.
Basically, serialization converts data into a stream. It
also helps build dynamic scripts in a backend channel,
passing information from third-party servers to the
browser DOM for execution. These factors can be uti-
lized collectively to misuse the AJAX technology8 and
the techniques are proliferating in the wild. Numer-
ous attacks can be initiated with new parameters and
web technologies. The educational community, finan-
cial institutions, banks, companies, etc., are all struc-
tured over the Web. Browsers are interdependent on
a number of components and sometimes it is hard to
determine the impact of a vulnerability. Are we ready
to handle such attacks? Are our defense mechanisms in-                                                                    figure 1 – JavaScript Infection model
genious enough to thwart Web 2.0 attacks through AJAX
and applied policies?                                                                  namic operations, which can be performed on the vulnerable
                                                                                       websites and applications. Every browser uses JavaScript as a
Web malware – real world scenario                                                      default scripting language and content is rendered without
Web malware is infecting websites at a rapid pace. The rea-                            any notification because this scripting language is a working
sons can be security negligence, unpatched vulnerabilities,                            standard in Web 2.0. That’s the main reason malware writers
administration problems, etc., but the impact is growing                               use JavaScript to conduct stealth attacks by exploiting the in-
exponentially. In the last few years, the security community                           built functionality of browsers.
has detected an overwhelming increase in malware using Ja-                             It is always advisable to understand the benchmark of infec-
vaScript.9 10 The malware problem, however, is not restricted                          tion strategies used by the attackers to launch extensive at-
to one business entity but has encompassed all the spheres,                            tacks on the public websites or social networking environ-
thereby resulting in loss of business and compromising the                             ments. The JavaScript Infection Model (JIM) reflects the
stability and robustness of organizations. Dasient11 has pub-                          generic methods opted by the attackers to launch malware.
lished stats which present the sphere of infection by web mal-                         The model itself clarifies the structure and basic thinking
ware. Business is the most exploited entity because of the in-                         of the attacker to inject malware in the Web, thereby result-
herent money element involved in it – there is money to steal.                         ing in large-scale infection. The overall model is presented
                                                                                       in Figure 1. The following steps describe the model in detail.
understanding the JavaScript Infection
                                                                                       1. Attacker controlled domain
model                                                                                  The base is the attacker’s controlled domain, which hosts a
JavaScript is one of the most susceptible scripting language                           number of malware/programs that are used for malicious
used for malware infection by most of the attackers,12 espe-                           purposes. This step is undertaken to ensure that there is a
cially since JavaScript is used extensively in websites and ap-                        centralized repository of JavaScript malware. The infection
plications for accessing various HTML elements and objects                             vector can be a single website or a number of websites in the
dynamically. JavaScript provides more robust control and dy-                           domain. The attacker’s controlled domain also has custom
                                                                                       designed web spiders for collecting information from the
8 Malware using AJAX, http://blogs.securiteam.com/index.php/archives/734.
                                                                                       Web. Attackers always look for vulnerabilities in websites to
9 Growth in Web Malware, http://blog.dasient.com/2010/09/continued-growth-in-
  web-based-malware_9357.html.
                                                                                       conduct injections so that malicious content can be included
10 Malware Stats, http://wam.dasient.com/wam/infection_library_index.                  into the victimized websites.
11 Dasient, http://blog.dasient.com/2010/09/continued-growth-in-web-based-
   malware_9357.html.
                                                                                       2. Detecting blacklisted and vulnerable websites
12 JavaScript opens doors to browser-based attacks, http://news.cnet.com/JavaScript-   The second step is to scrutinize vulnerable websites and do-
   opens-doors-to-browser-based-attacks/2100-7349_3-6099891.html.                      mains which possess inherent application vulnerabilities that

                           ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only.
32
JavaScript Infection model | Aditya K Sood and Richard J. Enbody                                                        ISSA Journal | November 2010


can be exploited to spread malware. As most malware spread-
ing attacks are automated, an attacker should have the infor-
                                                                            Spreading malware: JavaScript functionality
mation of blacklisted websites in order to make the malware                 JavaScript is used extensively in spreading malware13 due to
attacks more successful. Automated spiders accumulate in-                   its inherent nature to provide direct access to browser com-
formation about a domain. This is a very important step from                ponents. A JavaScript infection pattern is followed by most
malware writer’s perspective because if the website is black-               malware whether system-resident or web-based to hide the
listed, it gives an indication of the fact that most browsers               objects used for infection. The concept of hidden infection is
will not visit that website. As a result, it hampers the malware            not new but is used in a randomized manner. This is a very
infections through JavaScript. This information required by                 effective technique to launch malware attacks in a stealthy
the attacker depends on the capability of that spider. As one               manner to exploit the user parlance to understand what is
knows the Web is an open forest: there is no stringency in                  happening at the backend. There are definitive methods that
accessing the front end of websites directly because it is the              are used incessantly by web malware to infect victim ma-
Web’s default nature until and unless custom security con-                  chines. Let’s have a look at the hidden structure which is used
trols are implemented.                                                      intensively.

3. Designing attack vector                                                  remote scripting with hidden iframes
After detecting the blacklisted domains, the crawlers push                  The HTTP specification allows the effective use of <iframe>
the information back to the attacker’s controlled domain                    in a substantial manner to embed one webpage into another
for scrutinizing the contents. During this process malicious                webpage, irrespective of the domain to which a page belongs,
scripts are not injected into blacklisted domains; rather new               and can be used in cross-domain context. This functionality
sets of websites having vulnerabilities are used as an attack               of iFrames is exploited by malware writers in order to infect
point. The crawling process is repeated to find new domains                 systems. Since these are interactive in nature, it is possible
having security vulnerabilities. The information can be                     to bypass Same Origin Policy (SOP) easily to launch cross-
scanned in an automated manner or manually; it depends                      domain attacks if a certain set of vulnerabilities exist in the
on the attacker’s strategy how the process will be carried out.             base software or in web applications. SOP defines a control
For example, user agent strings provide information about                   policy on scripts that are originating in a same domain to
the type of browsers used and other custom software that                    access properties and objects on various webpages in that do-
are used in line with the browsers. This indirectly helps the               main. SOP applies restrictions on scripts in order to prevent
attackers a lot in crafting an attack by exploiting web vul-                access to HTML objects and properties of webpages on differ-
nerabilities in the new domains. If we talk about the manual                ent domains and websites. SOP is completely browser-based,
ways, then the attacker himself can look into the vulnerable                and due to inherent vulnerabilities14 in browsers it can be by-
websites for latent vulnerabilities. Again, it depends upon the             passed easily. This factor relates not only to the HTTP speci-
attack vector, which requires a specific set of vulnerabilities             fication but also to the browsers as to how effectively SOP is
to be exploited for spreading malware.                                      implemented. It also depends on the rendering engine when
4. Exploiting targets                                                       the objects are rendered and access is required by them to
                                                                            perform various functions.
The information is further looked upon by matching the in-
dexed vulnerabilities on the attacker’s domain to explore di-               <iframe src=”http://www.malicious.com” width=”1”
rect vulnerabilities that can be exploited. If not, the attacker            height=”1” style=”visibility:hidden;position:absol
tries to inject malicious iFrames in the context of the domain              ute”></iframe>
with the source pointing to malicious JavaScript hosted on                  <iframe src=” http://www.malicious.com” width=”0”
the attacker’s domain or third-party infected domain. Once                  height=”0”></iframe>
the JavaScript is injected, the code is changed as per require-
                                                                            The above presented iFrame code is used heavily in spreading
ments to infect the systems in a versatile manner. Lastly, the
                                                                            malware. The beauty of this code is the fact that the iFrame
attacker controls the vulnerable websites hosted on a domain
                                                                            becomes hidden and cannot be displayed on the infected
and changes them into a malware spreading entities. The at-
                                                                            website. The hidden iFrame sends a request to malicious.com
tacker’s surface becomes diversified when more victims fall
                                                                            for downloading malware or executing rogue JavaScript.
into the trap.
                                                                            Malware writers exploit this functionality to a greater extent
Many of the online tools used by malware writers primar-
                                                                            to serve malware by infecting websites with iFrames which
ily test the weaknesses and entry points through which Ja-
                                                                            can be used to serve hidden malware through infected web-
vaScript can be injected. Because JavaScript is dynamic and
                                                                            sites. It is also possible to update databases with malicious
robust in its working on the Web, it is the preferential choice
                                                                            iFrames as stored elements to make iFrames persistent in na-
of malware writers to conduct attacks and spread malware.

                                                                            13 JavaScript Malware, http://www.darkreading.com/security/app-security/showArticle.
                                                                               jhtml?articleID=208803932.
                                                                            14 Mozilla SOP bypass Vulnerability, http://securitytracker.com/alerts/2010/
                                                                               Jul/1024228.html.


                    ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only.
                                                                                                                                                            33
JavaScript Infection model | Aditya K Sood and Richard J. Enbody                                                             ISSA Journal | November 2010


ture. This type of attack depends on the XSS vulnerability                        ity. Image objects a have “src” parameter and are pointed
being present in the website, depending on the design of the                      to URLs that exploit the vulnerability in Firefox. JavaScript
application and website which makes the XSS persistent or                         heap blocks constitute the shellcode with call and jmp in-
reflective in nature. Nowadays, SQL-injection attacks have                        structions. The shellcode may result in downloading of mal-
been used in conjunction with XSS to upload malicious iF-                         ware.18
rames into a database through a vulnerable website. The
iFrames are passed as payloads in the form of hexadecimal                         obfuscation and hybrid codes
strings,15 which get stored in the web database. It remains                       Code obfuscation is used at a very large scale for spreading
persistent in the database and is retrieved when a website is-                    malware. The preferable scripting language is, of course, Ja-
sues some database query. This tactic is used heavily in mass                     vaScript. But obfuscation is not restricted to only JavaScript
SQL-injection attacks that spread malware through drive-by-                       and using only escape functionality and generic encoders.
download attacks.                                                                 Obfuscation is used extensively to make code hybrids now-
                                                                                  adays. There can be a scenario in which two scripting lan-
JavaScript heap spraying                                                          guages are used together. The malware spreading can be done
The inherent software vulnerabilities that can be exploited                       very easily through hybrid codes because it becomes hard to
through JavaScript heap spraying16 are also a major source of                     analyze the code which is encoded with custom encoder and
malware infection. The browser-based exploits are used ex-                        using JavaScript functions to get downloaded into the sys-
tensively to trigger malware infection on the client side. If a                   tem. For example, custom JavaScript decoders can be used to
vulnerable version of the browser is running or there is pres-                    decode the JavaScript-related functions, but in order to deci-
ence of vulnerable software, the malware writers try to ex-                       pher the payloads other extensive tools are required. PERL is
ploit the vulnerability in order to execute custom shellcode.                     a good tool that is used in a wide manner to decode hybrid
Heap spraying is a type of attack which exploits memory cor-                      codes to understand the actual payload which is exploiting
ruption vulnerabilities through browsers without any has-                         the system.
sles. The target is unsafe applications. The functional part is
to create and allocate arbitrary objects in the heap by using
                                                                                  Widgets
a type-safe language. The objects used to fill heaps contain                      The Web 2.0 working model uses widgets at a very large scale.
dangerous exploit codes to be run against the target system.                      Generally, these small chunks of code are used for enhanced
Specific notions used for these types of exploits are men-                        functionality, primarily for advertisement purposes, includ-
tioned below:                                                                     ing content from third parties, notification alerts, etc. They
                                                                                  are based on the concept of code reuse. Widgets are provided
      •	 Design a string which grows exponentially by concat-
                                                                                  by the advertisement agencies, news portals, companies, etc.,
         enating with itself
                                                                                  to include content for the user website experience. The vendor
      •	 Keep string format as Unicode to avoid any type of                       offers widgets that can be added manually or automatically
         stringency in the code                                                   in the user websites or blogs, depending on the feasibility of
      •	 Exhaust the maximum length that is allowed by the                        environment. In order to accept data from third parties, the
         scripting engine                                                         widget provides a communication and content transfer inter-
                                                                                  face between the parties. Once installed in the user website, it
      •	 Shellcode is placed at the end of the string
                                                                                  opens the communication channel between the parent node
      •	 The set of code is copied over a large sum of arrays                     and the child node. JavaScript widgets are used heavily for
         which can control the execution                                          infecting websites because the chunked code sits as HTML in
      •	 The attack surface is potentially created so that it can                 the parent page and follows the same hierarchy functions as
         have enough memory for exploitation                                      the parent node.19 It means the code becomes in line with the
                                                                                  main module and is executed as the webpage is loaded into
      •	 Heap blocks are considered to be on the same loca-
                                                                                  the browser. Widgets may contain malware which redirects
         tions every time
                                                                                  the website to a malware domain or starts downloading the
The above mentioned steps are used to exploit the target                          malware executables into the system. So JavaScript code in
through the browser. The security community has witnessed                         the form of widgets is used to spread malware through the
exorbitant growth of these browser-based exploits in the re-                      Web thereby impacting the large sets of users who are using
cent years.17 These attacks exploit the vulnerability in brows-                   that specific widget. The widgets can be uploaded to malware
ers by manipulating the default heap using JavaScript, used                       domains or content delivery networks to follow the chain
to create heap blocks within a particular memory range and                        process of infecting large number of websites.
dynamic image objects generated to trigger the vulnerabil-

15 SQLXSSI Attacks, http://www.slideshare.net/adityaks/owasp-app-sec-us-2010.     18 Mozilla “Host: Heap Buffer Overflow Exploit,” http://www.exploit-db.com/
16 Heap Spraying, http://www.blackhat.com/presentations/bh-europe-07/Sotirov/        exploits/1224.
   Presentation/bh-eu-07-sotirov-apr19.pdf.                                       19 Web Widget Infection, http://blog.dasient.com/2010/06/third-party-javascript-
17 IE Object Memory Corruption, http://www.exploit-db.com/exploits/930.              widget.html.


                          ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only.
34
JavaScript Infection model | Aditya K Sood and Richard J. Enbody                                                       ISSA Journal | November 2010



drive-by downloads                                                                        designed search engine. If a victim uses that search
                                                                                          portal to run a query, the resultant links are the most
Drive-by Download20 is one of the most long-lived techniques                              vulnerable links and directed towards malicious web
of spreading malware through JavaScript by forcing victims                                servers. This happens quite often.
to download malware without their consent and knowledge.
The malicious website usually hosts a number of hidden                                 •	 Generation of advertisement pop ups in the system
iFrames that point to the malicious program or malicious                                  continuously. This can be a time-based logic to gen-
Active X control. Essentially, the website forces the user’s                              erate a pop up after a requisite interval and running
browser to install the plug-in directly on the system. How                                with the same behavior for a longer duration.
does the drive-by download work? Let’s consider as generic                       The infection does not stop here as such. If a victim tries to
case. The website offers a browser plug-in to install directly                   remove the required set of files, a cleanup link is also pro-
into the context of system. There is a lot of functional dif-                    vided which further downloads another plug-in having well-
ference between a normal plug-in and Program Loader Stub                         defined EULA and privacy restrictions. The attackers follow
(PLS) which is installed as result of the plug-in. Program                       the same technique but the overall functional perspective is
loader stub defines the nature of execution of plug-in. The                      different. It is kind of dual entrapment and the directed web-
main function of program loader stub is to call functions in                     site looks like a cleaning solution vendor website, but typi-
a hierarchical manner and synchronously. In general terms,                       cally it is fake. As a result, the victim is trapped again and the
the PLS is responsible for calling API’s appropriately that are                  system gets infected with a different layout.
used by plug-ins to download malware. The PLS loads each
DLL that is required by the plug-in into the memory space. It                    conclusion
fills in the structures in the import directory of the execut-                   Malware running rampant in the wild is an outcome of flaws
able in the memory. If the DLL is not loaded in the memory,                      and vulnerabilities that exist in web applications and web-
the PLS fails to load the malicious executable. The stub ac-                     sites that make up the Web. The same language tools are used
tually downloads a lot of malicious content into the user’s                      for development AND exploitation. This paper has presented
system by remaining silent and infecting the system at large                     JavaScript from the malicious infection point of view. In or-
in a stealth manner. The plug-in offers fake information to                      der to defend against these web malware we have to design
convince the user it is valid:                                                   a number of defenses and protections in the same pattern.
    1. Fake certification and end user license agreements                        Since JavaScript is the major scripting language to add dy-
       (EULA) links aiming to exploit the user’s ability to                      namic functionality to webpages, the same is used for dy-
       make a decision about the software.                                       namic generation of malware. So understanding the diverse
                                                                                 nature of JavaScript, we can design protection mechanisms to
    2. Incessant and rogue security warnings to exploit the                      combat its misuse and exploitation by malware writers.
       user’s inability to decide the working of software
       plug-in.                                                                  About the Authors
If the required plug-in is allowed to install in the system, a                   Aditya K Sood is a security researcher, con-
stub is installed simultaneously, which further downloads a                      sultant, and Ph.D. candidate at Michigan
number of programs without user consent. The installed pro-                      State University. He has worked in the se-
grams infect the system as mentioned below:                                      curity domain for Armorize, COSEINC,
                                                                                 and KPMG and founded SecNiche Secu-
     •	 Infection at the folder level by placing malicious files.                rity. He has been an active speaker at con-
        The malware programs follow the concept of cross                         ferences like RSA, TRISC, Hacker Halted,
        linking in which one malicious binary is interfaced                      ExCaliburCon, EuSecwest, XCON, OWASP AppSec, Security-
        with another malicious binary with randomized                            Byte, CERT-IN and has written content for HITB Ezine, Ha-
        names. This becomes hard for a normal user to detect                     kin9, Usenix Login.He may be reached at adi_ks@secniche.org.
        the real working of the binary present in the requisite
        program files folder.                                                    Dr. Richard Enbody is an Associate Profes-
                                                                                 sor in the Department of Computer Science
     •	 Inserting malicious, e.g.,. porn website, links in the                   and Engineering, Michigan State Universi-
        browser bookmarks and shortcuts to be placed in the                      ty. He joined the faculty in 1987 after earn-
        program bars on the desktop that further links ma-                       ing his Ph.D. in Computer Science from
        licious website and malware programs respectively.                       the University of Minnesota. Richard’s
        The main criterion of this type of functionality is to                   research interests are in computer security,
        infect the generic places in the systems which are used                  computer architecture, web-based distance
        by the victims easily.                                                   education, and parallel processing. He has
     •	 It primarily hijacks the default browser links and web-                  two patents pending on hardware buffer-overflow protection,
        pages and points to a malicious website or custom-                       which will prevent most computer worms and viruses. He re-
                                                                                 cently co-authored a CS1 Python book, The Practice of Comput-
20 Drive by Downloads, http://www.spywarewarrior.com/uiuc/dbd-anatomy.htm.       ing using Python. He may be reached at enbody@cse.msu.edu.

                         ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only.
                                                                                                                                                35

Recommended

Web Application Security Guide by Qualys 2011 by
Web Application Security Guide by Qualys 2011 Web Application Security Guide by Qualys 2011
Web Application Security Guide by Qualys 2011 nat page
1.1K views7 slides
Scaling Web 2.0 Malware Infection by
Scaling Web 2.0 Malware InfectionScaling Web 2.0 Malware Infection
Scaling Web 2.0 Malware InfectionWayne Huang
1.4K views46 slides
Types of viruses by
Types of virusesTypes of viruses
Types of virusesmudassir1988
1.6K views9 slides
Methods Hackers Use by
Methods Hackers UseMethods Hackers Use
Methods Hackers Usebrittanyjespersen
1.1K views17 slides
HallTumserFinalPaper by
HallTumserFinalPaperHallTumserFinalPaper
HallTumserFinalPaperDaniel Tumser
401 views4 slides
Stopping threats with Votiro's Advanced Content Disarm and Reconstruction tec... by
Stopping threats with Votiro's Advanced Content Disarm and Reconstruction tec...Stopping threats with Votiro's Advanced Content Disarm and Reconstruction tec...
Stopping threats with Votiro's Advanced Content Disarm and Reconstruction tec...Jasmin Hami
637 views9 slides

More Related Content

What's hot

Prevention of Cross-Site Scripting using Hash Technique by
Prevention of Cross-Site Scripting using Hash TechniquePrevention of Cross-Site Scripting using Hash Technique
Prevention of Cross-Site Scripting using Hash TechniqueIJCSIS Research Publications
34 views5 slides
Corona - Ph.D. Defense Slides by
Corona - Ph.D. Defense SlidesCorona - Ph.D. Defense Slides
Corona - Ph.D. Defense SlidesPluribus One
764 views64 slides
WannaCry: Autopsy of Ransomwar by
WannaCry: Autopsy of RansomwarWannaCry: Autopsy of Ransomwar
WannaCry: Autopsy of RansomwarDavid Smith
105 views3 slides
Masango2017 by
Masango2017Masango2017
Masango2017Prakash1944121
43 views8 slides
MLabs - Cyber Crime Tactics and Techniques Q2 2017 by
MLabs - Cyber Crime Tactics and Techniques Q2 2017MLabs - Cyber Crime Tactics and Techniques Q2 2017
MLabs - Cyber Crime Tactics and Techniques Q2 2017Jermund Ottermo
348 views24 slides
Codigo Malicioso by
Codigo MaliciosoCodigo Malicioso
Codigo MaliciosoJose Manuel Acosta
1.3K views24 slides

What's hot(18)

Corona - Ph.D. Defense Slides by Pluribus One
Corona - Ph.D. Defense SlidesCorona - Ph.D. Defense Slides
Corona - Ph.D. Defense Slides
Pluribus One764 views
WannaCry: Autopsy of Ransomwar by David Smith
WannaCry: Autopsy of RansomwarWannaCry: Autopsy of Ransomwar
WannaCry: Autopsy of Ransomwar
David Smith105 views
MLabs - Cyber Crime Tactics and Techniques Q2 2017 by Jermund Ottermo
MLabs - Cyber Crime Tactics and Techniques Q2 2017MLabs - Cyber Crime Tactics and Techniques Q2 2017
MLabs - Cyber Crime Tactics and Techniques Q2 2017
Jermund Ottermo348 views
Ransomware Trends 2017 & Mitigation Techniques by Avinash Sinha
Ransomware Trends 2017 & Mitigation TechniquesRansomware Trends 2017 & Mitigation Techniques
Ransomware Trends 2017 & Mitigation Techniques
Avinash Sinha1.6K views
IJSRED-V2I3P69 by IJSRED
IJSRED-V2I3P69IJSRED-V2I3P69
IJSRED-V2I3P69
IJSRED47 views
Web App Sec Benchmarks by Aung Khant
Web App Sec BenchmarksWeb App Sec Benchmarks
Web App Sec Benchmarks
Aung Khant258 views
Software Security - Vulnerability&Attack by Emanuela Boroș
Software Security - Vulnerability&AttackSoftware Security - Vulnerability&Attack
Software Security - Vulnerability&Attack
Emanuela Boroș1.4K views
Comparative Study of Fileless Ransomware by ijtsrd
Comparative Study of Fileless RansomwareComparative Study of Fileless Ransomware
Comparative Study of Fileless Ransomware
ijtsrd38 views
Zero day-malware-protection-brief-2607983 by saif khan
Zero day-malware-protection-brief-2607983Zero day-malware-protection-brief-2607983
Zero day-malware-protection-brief-2607983
saif khan110 views
CSRF Attacks and its Defence using Middleware by ijtsrd
CSRF Attacks and its Defence using MiddlewareCSRF Attacks and its Defence using Middleware
CSRF Attacks and its Defence using Middleware
ijtsrd49 views

Viewers also liked

NALCO Recruitment 2015 by
NALCO Recruitment 2015NALCO Recruitment 2015
NALCO Recruitment 2015Sudha Sati
265 views1 slide
Thoughts On Simplicity and Agile by
Thoughts On Simplicity and AgileThoughts On Simplicity and Agile
Thoughts On Simplicity and Agileguobiao_li
1.4K views41 slides
Student Facilitator Presentation by
Student Facilitator PresentationStudent Facilitator Presentation
Student Facilitator PresentationZoe Christo
1.4K views5 slides
INGLES A1 by
INGLES A1INGLES A1
INGLES A1Johanna Parra Avila
606 views5 slides
รายชื่อคณะทำงาน by
รายชื่อคณะทำงานรายชื่อคณะทำงาน
รายชื่อคณะทำงานsongdet khunta
315 views6 slides
Rescue1.asd by
Rescue1.asdRescue1.asd
Rescue1.asdmahmoud shetewy
213 views2 slides

Viewers also liked(20)

NALCO Recruitment 2015 by Sudha Sati
NALCO Recruitment 2015NALCO Recruitment 2015
NALCO Recruitment 2015
Sudha Sati265 views
Thoughts On Simplicity and Agile by guobiao_li
Thoughts On Simplicity and AgileThoughts On Simplicity and Agile
Thoughts On Simplicity and Agile
guobiao_li1.4K views
Student Facilitator Presentation by Zoe Christo
Student Facilitator PresentationStudent Facilitator Presentation
Student Facilitator Presentation
Zoe Christo1.4K views
รายชื่อคณะทำงาน by songdet khunta
รายชื่อคณะทำงานรายชื่อคณะทำงาน
รายชื่อคณะทำงาน
songdet khunta315 views
Ashtavakra Gita Chapter 18 - Wonders of Patience by Vinod Kad
Ashtavakra Gita Chapter 18 - Wonders of PatienceAshtavakra Gita Chapter 18 - Wonders of Patience
Ashtavakra Gita Chapter 18 - Wonders of Patience
Vinod Kad1.5K views
Corporate Image Consulting by robertsol
Corporate Image ConsultingCorporate Image Consulting
Corporate Image Consulting
robertsol747 views
Welding machine catalogue from expert technology co.,ltd manufacture by carriewu0911
Welding machine catalogue from expert technology co.,ltd manufactureWelding machine catalogue from expert technology co.,ltd manufacture
Welding machine catalogue from expert technology co.,ltd manufacture
carriewu0911451 views
Ukg pedagogig 2 by Patta Ula
Ukg pedagogig 2Ukg pedagogig 2
Ukg pedagogig 2
Patta Ula1.1K views
Resumes: Remove the Irrelevant by Steve Rogers
Resumes: Remove the IrrelevantResumes: Remove the Irrelevant
Resumes: Remove the Irrelevant
Steve Rogers492 views
对Cite space生成的kml文件进行可视化 by cueb
对Cite space生成的kml文件进行可视化对Cite space生成的kml文件进行可视化
对Cite space生成的kml文件进行可视化
cueb472 views
iNut Limited Mi Gel by inutltd
iNut Limited Mi GeliNut Limited Mi Gel
iNut Limited Mi Gel
inutltd193 views
iNut Limited Leather Beani Tablet Range by inutltd
iNut Limited Leather Beani Tablet RangeiNut Limited Leather Beani Tablet Range
iNut Limited Leather Beani Tablet Range
inutltd196 views

Similar to ISSA Journal Paper - JavaScript Infection Model

Analysis of XSS attack Mitigation techniques based on Platforms and Browsers by
Analysis of XSS attack Mitigation techniques based on Platforms and BrowsersAnalysis of XSS attack Mitigation techniques based on Platforms and Browsers
Analysis of XSS attack Mitigation techniques based on Platforms and Browserscscpconf
61 views11 slides
A26001006 by
A26001006A26001006
A26001006IJERA Editor
2.8K views6 slides
Qg was guide by
Qg was guideQg was guide
Qg was guidenat page
396 views7 slides
Web Vulnerabilities And Exploitation - Compromising The Web by
Web Vulnerabilities And Exploitation - Compromising The WebWeb Vulnerabilities And Exploitation - Compromising The Web
Web Vulnerabilities And Exploitation - Compromising The WebZero Science Lab
1.7K views4 slides
Routine Detection Of Web Application Defence Flaws by
Routine Detection Of Web Application Defence FlawsRoutine Detection Of Web Application Defence Flaws
Routine Detection Of Web Application Defence FlawsIJTET Journal
240 views5 slides
Report on xss and do s by
Report on xss and do sReport on xss and do s
Report on xss and do smehr77
737 views6 slides

Similar to ISSA Journal Paper - JavaScript Infection Model(20)

Analysis of XSS attack Mitigation techniques based on Platforms and Browsers by cscpconf
Analysis of XSS attack Mitigation techniques based on Platforms and BrowsersAnalysis of XSS attack Mitigation techniques based on Platforms and Browsers
Analysis of XSS attack Mitigation techniques based on Platforms and Browsers
cscpconf61 views
Qg was guide by nat page
Qg was guideQg was guide
Qg was guide
nat page396 views
Web Vulnerabilities And Exploitation - Compromising The Web by Zero Science Lab
Web Vulnerabilities And Exploitation - Compromising The WebWeb Vulnerabilities And Exploitation - Compromising The Web
Web Vulnerabilities And Exploitation - Compromising The Web
Zero Science Lab1.7K views
Routine Detection Of Web Application Defence Flaws by IJTET Journal
Routine Detection Of Web Application Defence FlawsRoutine Detection Of Web Application Defence Flaws
Routine Detection Of Web Application Defence Flaws
IJTET Journal240 views
Report on xss and do s by mehr77
Report on xss and do sReport on xss and do s
Report on xss and do s
mehr77737 views
TRISC 2010 - Grapevine , Texas by Aditya K Sood
TRISC 2010 - Grapevine , TexasTRISC 2010 - Grapevine , Texas
TRISC 2010 - Grapevine , Texas
Aditya K Sood525 views
13.2ResMilitary005651045-1058.pdf by sowmi59
13.2ResMilitary005651045-1058.pdf13.2ResMilitary005651045-1058.pdf
13.2ResMilitary005651045-1058.pdf
sowmi597 views
website vulnerability scanner and reporter research paper by Bhagyashri Chalakh
website vulnerability scanner and reporter research paperwebsite vulnerability scanner and reporter research paper
website vulnerability scanner and reporter research paper
Bhagyashri Chalakh184 views
Research challenges and issues in web security by IAEME Publication
Research challenges and issues in web securityResearch challenges and issues in web security
Research challenges and issues in web security
IAEME Publication209 views
Watch Guard Reputation Enabled Defense (White Paper)Dna by SylCotter
Watch Guard   Reputation Enabled Defense (White Paper)DnaWatch Guard   Reputation Enabled Defense (White Paper)Dna
Watch Guard Reputation Enabled Defense (White Paper)Dna
SylCotter734 views
Case Study: Q2 2014 Global DDoS Attack Report | Akamai Document by Prolexic
Case Study:  Q2 2014 Global DDoS Attack Report | Akamai  DocumentCase Study:  Q2 2014 Global DDoS Attack Report | Akamai  Document
Case Study: Q2 2014 Global DDoS Attack Report | Akamai Document
Prolexic472 views
INLINE_PATCH_PROXY_FOR_XEN_HYPERVISOR by Neha Rana
INLINE_PATCH_PROXY_FOR_XEN_HYPERVISORINLINE_PATCH_PROXY_FOR_XEN_HYPERVISOR
INLINE_PATCH_PROXY_FOR_XEN_HYPERVISOR
Neha Rana196 views
Study of Cross-Site Scripting Attacks and Their Countermeasures by Editor IJCATR
Study of Cross-Site Scripting Attacks and Their CountermeasuresStudy of Cross-Site Scripting Attacks and Their Countermeasures
Study of Cross-Site Scripting Attacks and Their Countermeasures
Editor IJCATR431 views
A Review paper on Securing PHP based websites From Web Application Vulnerabil... by Editor IJMTER
A Review paper on Securing PHP based websites From Web Application Vulnerabil...A Review paper on Securing PHP based websites From Web Application Vulnerabil...
A Review paper on Securing PHP based websites From Web Application Vulnerabil...
Editor IJMTER345 views
IRJET - Web Vulnerability Scanner by IRJET Journal
IRJET - Web Vulnerability ScannerIRJET - Web Vulnerability Scanner
IRJET - Web Vulnerability Scanner
IRJET Journal20 views
A look at the prevalence of client-side JavaScript vulnerabilities in web app... by IBM Rational software
A look at the prevalence of client-side JavaScript vulnerabilities in web app...A look at the prevalence of client-side JavaScript vulnerabilities in web app...
A look at the prevalence of client-side JavaScript vulnerabilities in web app...

More from Aditya K Sood

Emerging Trends in Online Social Networks Malware by
Emerging Trends in Online Social Networks MalwareEmerging Trends in Online Social Networks Malware
Emerging Trends in Online Social Networks MalwareAditya K Sood
93 views41 slides
Enfilade: Tool to Detect Infections in MongoDB Instances by
Enfilade: Tool to Detect Infections in MongoDB InstancesEnfilade: Tool to Detect Infections in MongoDB Instances
Enfilade: Tool to Detect Infections in MongoDB InstancesAditya K Sood
452 views17 slides
Detecting Ransomware/Bot Infections in Elasticsearch by
Detecting Ransomware/Bot Infections in ElasticsearchDetecting Ransomware/Bot Infections in Elasticsearch
Detecting Ransomware/Bot Infections in ElasticsearchAditya K Sood
135 views13 slides
BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan... by
BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan...BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan...
BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan...Aditya K Sood
11.8K views37 slides
BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie... by
BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie...BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie...
BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie...Aditya K Sood
8.6K views27 slides
Network Security : Book Review : Targeted Cyber Attacks : Aditya K Sood by
Network Security : Book Review : Targeted Cyber Attacks : Aditya K SoodNetwork Security : Book Review : Targeted Cyber Attacks : Aditya K Sood
Network Security : Book Review : Targeted Cyber Attacks : Aditya K SoodAditya K Sood
17.4K views1 slide

More from Aditya K Sood(20)

Emerging Trends in Online Social Networks Malware by Aditya K Sood
Emerging Trends in Online Social Networks MalwareEmerging Trends in Online Social Networks Malware
Emerging Trends in Online Social Networks Malware
Aditya K Sood93 views
Enfilade: Tool to Detect Infections in MongoDB Instances by Aditya K Sood
Enfilade: Tool to Detect Infections in MongoDB InstancesEnfilade: Tool to Detect Infections in MongoDB Instances
Enfilade: Tool to Detect Infections in MongoDB Instances
Aditya K Sood452 views
Detecting Ransomware/Bot Infections in Elasticsearch by Aditya K Sood
Detecting Ransomware/Bot Infections in ElasticsearchDetecting Ransomware/Bot Infections in Elasticsearch
Detecting Ransomware/Bot Infections in Elasticsearch
Aditya K Sood135 views
BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan... by Aditya K Sood
BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan...BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan...
BlackHat 2014 Briefings - Exploiting Fundamental Weaknesses in Botnet C&C Pan...
Aditya K Sood11.8K views
BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie... by Aditya K Sood
BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie...BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie...
BlackHat Arsenal 2014 - C-SCAD : Assessing Security Flaws in C-SCAD WebX Clie...
Aditya K Sood8.6K views
Network Security : Book Review : Targeted Cyber Attacks : Aditya K Sood by Aditya K Sood
Network Security : Book Review : Targeted Cyber Attacks : Aditya K SoodNetwork Security : Book Review : Targeted Cyber Attacks : Aditya K Sood
Network Security : Book Review : Targeted Cyber Attacks : Aditya K Sood
Aditya K Sood17.4K views
Abusing Glype Proxies - Attacks, Exploits and Defences by Aditya K Sood
Abusing Glype Proxies - Attacks, Exploits and DefencesAbusing Glype Proxies - Attacks, Exploits and Defences
Abusing Glype Proxies - Attacks, Exploits and Defences
Aditya K Sood4.7K views
NIframer - CPanel IFrame Injector (Bash based) - Virus Bulletin Magazine by Aditya K Sood
NIframer - CPanel IFrame Injector (Bash based) - Virus Bulletin MagazineNIframer - CPanel IFrame Injector (Bash based) - Virus Bulletin Magazine
NIframer - CPanel IFrame Injector (Bash based) - Virus Bulletin Magazine
Aditya K Sood18.8K views
CrossTalk - The Art of Cyber Bank Robbery - Stealing your Money Through Insid... by Aditya K Sood
CrossTalk - The Art of Cyber Bank Robbery - Stealing your Money Through Insid...CrossTalk - The Art of Cyber Bank Robbery - Stealing your Money Through Insid...
CrossTalk - The Art of Cyber Bank Robbery - Stealing your Money Through Insid...
Aditya K Sood4.6K views
BlackHat USA 2013 Arsenal - Sparty : A FrontPage and SharePoint Security Audi... by Aditya K Sood
BlackHat USA 2013 Arsenal - Sparty : A FrontPage and SharePoint Security Audi...BlackHat USA 2013 Arsenal - Sparty : A FrontPage and SharePoint Security Audi...
BlackHat USA 2013 Arsenal - Sparty : A FrontPage and SharePoint Security Audi...
Aditya K Sood22.3K views
ToorCon 14 : Malandroid : The Crux of Android Infections by Aditya K Sood
ToorCon 14 : Malandroid : The Crux of Android InfectionsToorCon 14 : Malandroid : The Crux of Android Infections
ToorCon 14 : Malandroid : The Crux of Android Infections
Aditya K Sood5.1K views
DEF CON 20 - Botnets Die Hard - Owned and Operated by Aditya K Sood
DEF CON 20 - Botnets Die Hard - Owned and OperatedDEF CON 20 - Botnets Die Hard - Owned and Operated
DEF CON 20 - Botnets Die Hard - Owned and Operated
Aditya K Sood1.7K views
Hackers on Planet Earth (HOPE - 2012) Advancements in Botnet Attacks by Aditya K Sood
Hackers on Planet Earth (HOPE - 2012) Advancements in Botnet Attacks Hackers on Planet Earth (HOPE - 2012) Advancements in Botnet Attacks
Hackers on Planet Earth (HOPE - 2012) Advancements in Botnet Attacks
Aditya K Sood1.5K views
NGR Bot Analysis Paper by Aditya K Sood
NGR Bot Analysis PaperNGR Bot Analysis Paper
NGR Bot Analysis Paper
Aditya K Sood1.4K views
Virus bulletin 2011 Conference Paper - Browser Exploit Packs - Exploitation T... by Aditya K Sood
Virus bulletin 2011 Conference Paper - Browser Exploit Packs - Exploitation T...Virus bulletin 2011 Conference Paper - Browser Exploit Packs - Exploitation T...
Virus bulletin 2011 Conference Paper - Browser Exploit Packs - Exploitation T...
Aditya K Sood3.2K views
Commercial Cyber Crime - Social Networks Malware by Aditya K Sood
Commercial Cyber Crime - Social Networks MalwareCommercial Cyber Crime - Social Networks Malware
Commercial Cyber Crime - Social Networks Malware
Aditya K Sood762 views
Virus Bulletin 2011 Conference - Browser Exploit Packs - Death by Bundled Exp... by Aditya K Sood
Virus Bulletin 2011 Conference - Browser Exploit Packs - Death by Bundled Exp...Virus Bulletin 2011 Conference - Browser Exploit Packs - Death by Bundled Exp...
Virus Bulletin 2011 Conference - Browser Exploit Packs - Death by Bundled Exp...
Aditya K Sood1.9K views
OWASP AppSec USA 2011 - Dismantling Web Malware by Aditya K Sood
OWASP AppSec USA 2011 - Dismantling Web MalwareOWASP AppSec USA 2011 - Dismantling Web Malware
OWASP AppSec USA 2011 - Dismantling Web Malware
Aditya K Sood1.5K views
Browser Malware Taxonomy by Aditya K Sood
Browser Malware TaxonomyBrowser Malware Taxonomy
Browser Malware Taxonomy
Aditya K Sood2.9K views
BruCon (Brussels 2011) Hacking Conference - Botnets and Browsers (Brothers in... by Aditya K Sood
BruCon (Brussels 2011) Hacking Conference - Botnets and Browsers (Brothers in...BruCon (Brussels 2011) Hacking Conference - Botnets and Browsers (Brothers in...
BruCon (Brussels 2011) Hacking Conference - Botnets and Browsers (Brothers in...
Aditya K Sood2.2K views

Recently uploaded

The Power of Heat Decarbonisation Plans in the Built Environment by
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built EnvironmentIES VE
85 views20 slides
Adopting Karpenter for Cost and Simplicity at Grafana Labs.pdf by
Adopting Karpenter for Cost and Simplicity at Grafana Labs.pdfAdopting Karpenter for Cost and Simplicity at Grafana Labs.pdf
Adopting Karpenter for Cost and Simplicity at Grafana Labs.pdfMichaelOLeary82
13 views74 slides
Mobile Core Solutions & Successful Cases.pdf by
Mobile Core Solutions & Successful Cases.pdfMobile Core Solutions & Successful Cases.pdf
Mobile Core Solutions & Successful Cases.pdfIPLOOK Networks
16 views7 slides
Future of AR - Facebook Presentation by
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook PresentationRob McCarty
66 views27 slides
CryptoBotsAI by
CryptoBotsAICryptoBotsAI
CryptoBotsAIchandureddyvadala199
42 views5 slides
"Node.js Development in 2024: trends and tools", Nikita Galkin by
"Node.js Development in 2024: trends and tools", Nikita Galkin "Node.js Development in 2024: trends and tools", Nikita Galkin
"Node.js Development in 2024: trends and tools", Nikita Galkin Fwdays
37 views38 slides

Recently uploaded(20)

The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE85 views
Adopting Karpenter for Cost and Simplicity at Grafana Labs.pdf by MichaelOLeary82
Adopting Karpenter for Cost and Simplicity at Grafana Labs.pdfAdopting Karpenter for Cost and Simplicity at Grafana Labs.pdf
Adopting Karpenter for Cost and Simplicity at Grafana Labs.pdf
MichaelOLeary8213 views
Mobile Core Solutions & Successful Cases.pdf by IPLOOK Networks
Mobile Core Solutions & Successful Cases.pdfMobile Core Solutions & Successful Cases.pdf
Mobile Core Solutions & Successful Cases.pdf
IPLOOK Networks16 views
Future of AR - Facebook Presentation by Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty66 views
"Node.js Development in 2024: trends and tools", Nikita Galkin by Fwdays
"Node.js Development in 2024: trends and tools", Nikita Galkin "Node.js Development in 2024: trends and tools", Nikita Galkin
"Node.js Development in 2024: trends and tools", Nikita Galkin
Fwdays37 views
Transcript: Redefining the book supply chain: A glimpse into the future - Tec... by BookNet Canada
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
BookNet Canada43 views
AIM102-S_Cognizant_CognizantCognitive by PhilipBasford
AIM102-S_Cognizant_CognizantCognitiveAIM102-S_Cognizant_CognizantCognitive
AIM102-S_Cognizant_CognizantCognitive
PhilipBasford23 views
Discover Aura Workshop (12.5.23).pdf by Neo4j
Discover Aura Workshop (12.5.23).pdfDiscover Aura Workshop (12.5.23).pdf
Discover Aura Workshop (12.5.23).pdf
Neo4j20 views
This talk was not generated with ChatGPT: how AI is changing science by Elena Simperl
This talk was not generated with ChatGPT: how AI is changing scienceThis talk was not generated with ChatGPT: how AI is changing science
This talk was not generated with ChatGPT: how AI is changing science
Elena Simperl34 views
Bronack Skills - Risk Management and SRE v1.0 12-3-2023.pdf by ThomasBronack
Bronack Skills - Risk Management and SRE v1.0 12-3-2023.pdfBronack Skills - Risk Management and SRE v1.0 12-3-2023.pdf
Bronack Skills - Risk Management and SRE v1.0 12-3-2023.pdf
ThomasBronack31 views
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
Redefining the book supply chain: A glimpse into the future - Tech Forum 2023 by BookNet Canada
Redefining the book supply chain: A glimpse into the future - Tech Forum 2023Redefining the book supply chain: A glimpse into the future - Tech Forum 2023
Redefining the book supply chain: A glimpse into the future - Tech Forum 2023
BookNet Canada46 views
Deep Tech and the Amplified Organisation: Core Concepts by Holonomics
Deep Tech and the Amplified Organisation: Core ConceptsDeep Tech and the Amplified Organisation: Core Concepts
Deep Tech and the Amplified Organisation: Core Concepts
Holonomics17 views
"Package management in monorepos", Zoltan Kochan by Fwdays
"Package management in monorepos", Zoltan Kochan"Package management in monorepos", Zoltan Kochan
"Package management in monorepos", Zoltan Kochan
Fwdays37 views

ISSA Journal Paper - JavaScript Infection Model

  • 1. PreemInent truSted GlobAl ISSA ISSA Journal | November 2010 InformAtIon SecurIty communIty JavaScript Infection model By Aditya K Sood and Richard J. Enbody Advancements in Web 2.0 technologies have enhanced Internet functionality but at the same time have created numerous threats to the World Wide Web. this paper talks about the negative nature of JavaScript, which is exploited heavily by malware writers to spread infections throughout the online world. Abstract creasing4 in spite of versatile functions. These new technolo- gies have made the Web flexible and robust by allowing the Advancements in Web 2.0 technologies have enhanced In- inclusion of content from third-party sites and sending con- ternet functionality but at the same time have created nu- tent to other domains. In reality, data from the third parties merous threats to the World Wide Web. The biggest issue the cannot be verified against presence of potential malware. As online world is grappling with is web malware, which is an a result malware can accompany the data back into the parent outcome of intensive exploitation of web vulnerabilities. This website without restriction and continue spreading across the paper talks about the negative nature of JavaScript, which Web. Security considerations have to be undertaken in the is exploited heavily by malware writers to spread infections best possible manner to combat web exploitation. throughout the online world. new technologies exploitation Shift With the advent of new technologies, the sphere of attack sur- T here is always an element of discrepancy present be- face vulnerability has widened. The Web is getting exposed tween current and upcoming technologies. With the to identity theft, exploitation, scams, phishing, redirection advent of powerful operating system protection mech- vulnerabilities, cross site scripting (XSS), and cross site re- anisms, the attack surface has shifted to web exploitation vec- quest forgery (CSRF).5 CSRF, for example, is a type of attack tors because memory exploitation is becoming tougher for in which HTTP requests are sent in a stealth manner with- the attackers. Technologies such as Microsoft Data Execution out the knowledge of user. This type of attack allows the at- Protection (DEP),1 Address Space Layout Randomization tacker to execute commands and requests on user’s behalf. (ASLR),2 and GS cookies3 have circumvented the attack and The inherent vulnerabilities in web applications are exploited exploitation of system-level vulnerabilities. The use of string by various application injections such as PHP, ASP, LDAP, functions is completely isolated from systems as they are con- SQL, and DOM (Document Object Model).6 The injections sidered as a base for buffer overflow attacks. Exploitation has are widely used to manipulate the content, steal informa- shifted from system vulnerabilities to web vulnerabilities. tion, and spread malware. One step ahead is HTTP Protocol The attack landscape of the Web has a panorama of exploita- manipulation comprising of attack type Response Splitting,7 tions that are proliferating day by day. With the rise of blogs, which bypasses browser protection mechanisms by split- wikis, atom feeds, RSS, and others, the insecurity level is in- ting the HTTP response from the server thereby fooling the browser to interpret two responses instead of one. 4 RSS Attacks, http://www.techspot.com/news/20098-increased-rss-malware-attacks- 1 Data Execution Prevention, http://support.microsoft.com/kb/875352. predicted.html. 2 Address Space Layout Randomization, http://blogs.technet.com/b/security/ 5 Cross Site Request Forgery, https://www.isecpartners.com/files/CSRF_Paper.pdf. archive/2006/05/26/430538.aspx. 6 DOM XSS, http://www.webappsec.org/projects/articles/071105.shtml. 3 GS, http://blogs.technet.com/b/srd/archive/2009/03/20/enhanced-gs-in-visual- 7 HTTP Response Splitting, http://www.securiteam.com/ studio-2010.aspx. securityreviews/5WP0E2KFGK.html. ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only. 31
  • 2. JavaScript Infection model | Aditya K Sood and Richard J. Enbody ISSA Journal | November 2010 The cropping up of Web 2.0 and AJAX with JSON (JavaS- cript Object Notation) has transformed the structure of Web. Primarily, AJAX is used to interact with a spe- cific set of events in a webpage through asynchronous JavaScript calls, which are usually scattered through- out the webpage. AJAX allows a number of events to be executed in a single page from different domains. Content validation is a big problem because content is fetched from various sources. Further, AJAX serializes all types of data elements into strings, which are used by programming interfaces such as ASP, ASP.NET, etc. Basically, serialization converts data into a stream. It also helps build dynamic scripts in a backend channel, passing information from third-party servers to the browser DOM for execution. These factors can be uti- lized collectively to misuse the AJAX technology8 and the techniques are proliferating in the wild. Numer- ous attacks can be initiated with new parameters and web technologies. The educational community, finan- cial institutions, banks, companies, etc., are all struc- tured over the Web. Browsers are interdependent on a number of components and sometimes it is hard to determine the impact of a vulnerability. Are we ready to handle such attacks? Are our defense mechanisms in- figure 1 – JavaScript Infection model genious enough to thwart Web 2.0 attacks through AJAX and applied policies? namic operations, which can be performed on the vulnerable websites and applications. Every browser uses JavaScript as a Web malware – real world scenario default scripting language and content is rendered without Web malware is infecting websites at a rapid pace. The rea- any notification because this scripting language is a working sons can be security negligence, unpatched vulnerabilities, standard in Web 2.0. That’s the main reason malware writers administration problems, etc., but the impact is growing use JavaScript to conduct stealth attacks by exploiting the in- exponentially. In the last few years, the security community built functionality of browsers. has detected an overwhelming increase in malware using Ja- It is always advisable to understand the benchmark of infec- vaScript.9 10 The malware problem, however, is not restricted tion strategies used by the attackers to launch extensive at- to one business entity but has encompassed all the spheres, tacks on the public websites or social networking environ- thereby resulting in loss of business and compromising the ments. The JavaScript Infection Model (JIM) reflects the stability and robustness of organizations. Dasient11 has pub- generic methods opted by the attackers to launch malware. lished stats which present the sphere of infection by web mal- The model itself clarifies the structure and basic thinking ware. Business is the most exploited entity because of the in- of the attacker to inject malware in the Web, thereby result- herent money element involved in it – there is money to steal. ing in large-scale infection. The overall model is presented in Figure 1. The following steps describe the model in detail. understanding the JavaScript Infection 1. Attacker controlled domain model The base is the attacker’s controlled domain, which hosts a JavaScript is one of the most susceptible scripting language number of malware/programs that are used for malicious used for malware infection by most of the attackers,12 espe- purposes. This step is undertaken to ensure that there is a cially since JavaScript is used extensively in websites and ap- centralized repository of JavaScript malware. The infection plications for accessing various HTML elements and objects vector can be a single website or a number of websites in the dynamically. JavaScript provides more robust control and dy- domain. The attacker’s controlled domain also has custom designed web spiders for collecting information from the 8 Malware using AJAX, http://blogs.securiteam.com/index.php/archives/734. Web. Attackers always look for vulnerabilities in websites to 9 Growth in Web Malware, http://blog.dasient.com/2010/09/continued-growth-in- web-based-malware_9357.html. conduct injections so that malicious content can be included 10 Malware Stats, http://wam.dasient.com/wam/infection_library_index. into the victimized websites. 11 Dasient, http://blog.dasient.com/2010/09/continued-growth-in-web-based- malware_9357.html. 2. Detecting blacklisted and vulnerable websites 12 JavaScript opens doors to browser-based attacks, http://news.cnet.com/JavaScript- The second step is to scrutinize vulnerable websites and do- opens-doors-to-browser-based-attacks/2100-7349_3-6099891.html. mains which possess inherent application vulnerabilities that ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only. 32
  • 3. JavaScript Infection model | Aditya K Sood and Richard J. Enbody ISSA Journal | November 2010 can be exploited to spread malware. As most malware spread- ing attacks are automated, an attacker should have the infor- Spreading malware: JavaScript functionality mation of blacklisted websites in order to make the malware JavaScript is used extensively in spreading malware13 due to attacks more successful. Automated spiders accumulate in- its inherent nature to provide direct access to browser com- formation about a domain. This is a very important step from ponents. A JavaScript infection pattern is followed by most malware writer’s perspective because if the website is black- malware whether system-resident or web-based to hide the listed, it gives an indication of the fact that most browsers objects used for infection. The concept of hidden infection is will not visit that website. As a result, it hampers the malware not new but is used in a randomized manner. This is a very infections through JavaScript. This information required by effective technique to launch malware attacks in a stealthy the attacker depends on the capability of that spider. As one manner to exploit the user parlance to understand what is knows the Web is an open forest: there is no stringency in happening at the backend. There are definitive methods that accessing the front end of websites directly because it is the are used incessantly by web malware to infect victim ma- Web’s default nature until and unless custom security con- chines. Let’s have a look at the hidden structure which is used trols are implemented. intensively. 3. Designing attack vector remote scripting with hidden iframes After detecting the blacklisted domains, the crawlers push The HTTP specification allows the effective use of <iframe> the information back to the attacker’s controlled domain in a substantial manner to embed one webpage into another for scrutinizing the contents. During this process malicious webpage, irrespective of the domain to which a page belongs, scripts are not injected into blacklisted domains; rather new and can be used in cross-domain context. This functionality sets of websites having vulnerabilities are used as an attack of iFrames is exploited by malware writers in order to infect point. The crawling process is repeated to find new domains systems. Since these are interactive in nature, it is possible having security vulnerabilities. The information can be to bypass Same Origin Policy (SOP) easily to launch cross- scanned in an automated manner or manually; it depends domain attacks if a certain set of vulnerabilities exist in the on the attacker’s strategy how the process will be carried out. base software or in web applications. SOP defines a control For example, user agent strings provide information about policy on scripts that are originating in a same domain to the type of browsers used and other custom software that access properties and objects on various webpages in that do- are used in line with the browsers. This indirectly helps the main. SOP applies restrictions on scripts in order to prevent attackers a lot in crafting an attack by exploiting web vul- access to HTML objects and properties of webpages on differ- nerabilities in the new domains. If we talk about the manual ent domains and websites. SOP is completely browser-based, ways, then the attacker himself can look into the vulnerable and due to inherent vulnerabilities14 in browsers it can be by- websites for latent vulnerabilities. Again, it depends upon the passed easily. This factor relates not only to the HTTP speci- attack vector, which requires a specific set of vulnerabilities fication but also to the browsers as to how effectively SOP is to be exploited for spreading malware. implemented. It also depends on the rendering engine when 4. Exploiting targets the objects are rendered and access is required by them to perform various functions. The information is further looked upon by matching the in- dexed vulnerabilities on the attacker’s domain to explore di- <iframe src=”http://www.malicious.com” width=”1” rect vulnerabilities that can be exploited. If not, the attacker height=”1” style=”visibility:hidden;position:absol tries to inject malicious iFrames in the context of the domain ute”></iframe> with the source pointing to malicious JavaScript hosted on <iframe src=” http://www.malicious.com” width=”0” the attacker’s domain or third-party infected domain. Once height=”0”></iframe> the JavaScript is injected, the code is changed as per require- The above presented iFrame code is used heavily in spreading ments to infect the systems in a versatile manner. Lastly, the malware. The beauty of this code is the fact that the iFrame attacker controls the vulnerable websites hosted on a domain becomes hidden and cannot be displayed on the infected and changes them into a malware spreading entities. The at- website. The hidden iFrame sends a request to malicious.com tacker’s surface becomes diversified when more victims fall for downloading malware or executing rogue JavaScript. into the trap. Malware writers exploit this functionality to a greater extent Many of the online tools used by malware writers primar- to serve malware by infecting websites with iFrames which ily test the weaknesses and entry points through which Ja- can be used to serve hidden malware through infected web- vaScript can be injected. Because JavaScript is dynamic and sites. It is also possible to update databases with malicious robust in its working on the Web, it is the preferential choice iFrames as stored elements to make iFrames persistent in na- of malware writers to conduct attacks and spread malware. 13 JavaScript Malware, http://www.darkreading.com/security/app-security/showArticle. jhtml?articleID=208803932. 14 Mozilla SOP bypass Vulnerability, http://securitytracker.com/alerts/2010/ Jul/1024228.html. ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only. 33
  • 4. JavaScript Infection model | Aditya K Sood and Richard J. Enbody ISSA Journal | November 2010 ture. This type of attack depends on the XSS vulnerability ity. Image objects a have “src” parameter and are pointed being present in the website, depending on the design of the to URLs that exploit the vulnerability in Firefox. JavaScript application and website which makes the XSS persistent or heap blocks constitute the shellcode with call and jmp in- reflective in nature. Nowadays, SQL-injection attacks have structions. The shellcode may result in downloading of mal- been used in conjunction with XSS to upload malicious iF- ware.18 rames into a database through a vulnerable website. The iFrames are passed as payloads in the form of hexadecimal obfuscation and hybrid codes strings,15 which get stored in the web database. It remains Code obfuscation is used at a very large scale for spreading persistent in the database and is retrieved when a website is- malware. The preferable scripting language is, of course, Ja- sues some database query. This tactic is used heavily in mass vaScript. But obfuscation is not restricted to only JavaScript SQL-injection attacks that spread malware through drive-by- and using only escape functionality and generic encoders. download attacks. Obfuscation is used extensively to make code hybrids now- adays. There can be a scenario in which two scripting lan- JavaScript heap spraying guages are used together. The malware spreading can be done The inherent software vulnerabilities that can be exploited very easily through hybrid codes because it becomes hard to through JavaScript heap spraying16 are also a major source of analyze the code which is encoded with custom encoder and malware infection. The browser-based exploits are used ex- using JavaScript functions to get downloaded into the sys- tensively to trigger malware infection on the client side. If a tem. For example, custom JavaScript decoders can be used to vulnerable version of the browser is running or there is pres- decode the JavaScript-related functions, but in order to deci- ence of vulnerable software, the malware writers try to ex- pher the payloads other extensive tools are required. PERL is ploit the vulnerability in order to execute custom shellcode. a good tool that is used in a wide manner to decode hybrid Heap spraying is a type of attack which exploits memory cor- codes to understand the actual payload which is exploiting ruption vulnerabilities through browsers without any has- the system. sles. The target is unsafe applications. The functional part is to create and allocate arbitrary objects in the heap by using Widgets a type-safe language. The objects used to fill heaps contain The Web 2.0 working model uses widgets at a very large scale. dangerous exploit codes to be run against the target system. Generally, these small chunks of code are used for enhanced Specific notions used for these types of exploits are men- functionality, primarily for advertisement purposes, includ- tioned below: ing content from third parties, notification alerts, etc. They are based on the concept of code reuse. Widgets are provided • Design a string which grows exponentially by concat- by the advertisement agencies, news portals, companies, etc., enating with itself to include content for the user website experience. The vendor • Keep string format as Unicode to avoid any type of offers widgets that can be added manually or automatically stringency in the code in the user websites or blogs, depending on the feasibility of • Exhaust the maximum length that is allowed by the environment. In order to accept data from third parties, the scripting engine widget provides a communication and content transfer inter- face between the parties. Once installed in the user website, it • Shellcode is placed at the end of the string opens the communication channel between the parent node • The set of code is copied over a large sum of arrays and the child node. JavaScript widgets are used heavily for which can control the execution infecting websites because the chunked code sits as HTML in • The attack surface is potentially created so that it can the parent page and follows the same hierarchy functions as have enough memory for exploitation the parent node.19 It means the code becomes in line with the main module and is executed as the webpage is loaded into • Heap blocks are considered to be on the same loca- the browser. Widgets may contain malware which redirects tions every time the website to a malware domain or starts downloading the The above mentioned steps are used to exploit the target malware executables into the system. So JavaScript code in through the browser. The security community has witnessed the form of widgets is used to spread malware through the exorbitant growth of these browser-based exploits in the re- Web thereby impacting the large sets of users who are using cent years.17 These attacks exploit the vulnerability in brows- that specific widget. The widgets can be uploaded to malware ers by manipulating the default heap using JavaScript, used domains or content delivery networks to follow the chain to create heap blocks within a particular memory range and process of infecting large number of websites. dynamic image objects generated to trigger the vulnerabil- 15 SQLXSSI Attacks, http://www.slideshare.net/adityaks/owasp-app-sec-us-2010. 18 Mozilla “Host: Heap Buffer Overflow Exploit,” http://www.exploit-db.com/ 16 Heap Spraying, http://www.blackhat.com/presentations/bh-europe-07/Sotirov/ exploits/1224. Presentation/bh-eu-07-sotirov-apr19.pdf. 19 Web Widget Infection, http://blog.dasient.com/2010/06/third-party-javascript- 17 IE Object Memory Corruption, http://www.exploit-db.com/exploits/930. widget.html. ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only. 34
  • 5. JavaScript Infection model | Aditya K Sood and Richard J. Enbody ISSA Journal | November 2010 drive-by downloads designed search engine. If a victim uses that search portal to run a query, the resultant links are the most Drive-by Download20 is one of the most long-lived techniques vulnerable links and directed towards malicious web of spreading malware through JavaScript by forcing victims servers. This happens quite often. to download malware without their consent and knowledge. The malicious website usually hosts a number of hidden • Generation of advertisement pop ups in the system iFrames that point to the malicious program or malicious continuously. This can be a time-based logic to gen- Active X control. Essentially, the website forces the user’s erate a pop up after a requisite interval and running browser to install the plug-in directly on the system. How with the same behavior for a longer duration. does the drive-by download work? Let’s consider as generic The infection does not stop here as such. If a victim tries to case. The website offers a browser plug-in to install directly remove the required set of files, a cleanup link is also pro- into the context of system. There is a lot of functional dif- vided which further downloads another plug-in having well- ference between a normal plug-in and Program Loader Stub defined EULA and privacy restrictions. The attackers follow (PLS) which is installed as result of the plug-in. Program the same technique but the overall functional perspective is loader stub defines the nature of execution of plug-in. The different. It is kind of dual entrapment and the directed web- main function of program loader stub is to call functions in site looks like a cleaning solution vendor website, but typi- a hierarchical manner and synchronously. In general terms, cally it is fake. As a result, the victim is trapped again and the the PLS is responsible for calling API’s appropriately that are system gets infected with a different layout. used by plug-ins to download malware. The PLS loads each DLL that is required by the plug-in into the memory space. It conclusion fills in the structures in the import directory of the execut- Malware running rampant in the wild is an outcome of flaws able in the memory. If the DLL is not loaded in the memory, and vulnerabilities that exist in web applications and web- the PLS fails to load the malicious executable. The stub ac- sites that make up the Web. The same language tools are used tually downloads a lot of malicious content into the user’s for development AND exploitation. This paper has presented system by remaining silent and infecting the system at large JavaScript from the malicious infection point of view. In or- in a stealth manner. The plug-in offers fake information to der to defend against these web malware we have to design convince the user it is valid: a number of defenses and protections in the same pattern. 1. Fake certification and end user license agreements Since JavaScript is the major scripting language to add dy- (EULA) links aiming to exploit the user’s ability to namic functionality to webpages, the same is used for dy- make a decision about the software. namic generation of malware. So understanding the diverse nature of JavaScript, we can design protection mechanisms to 2. Incessant and rogue security warnings to exploit the combat its misuse and exploitation by malware writers. user’s inability to decide the working of software plug-in. About the Authors If the required plug-in is allowed to install in the system, a Aditya K Sood is a security researcher, con- stub is installed simultaneously, which further downloads a sultant, and Ph.D. candidate at Michigan number of programs without user consent. The installed pro- State University. He has worked in the se- grams infect the system as mentioned below: curity domain for Armorize, COSEINC, and KPMG and founded SecNiche Secu- • Infection at the folder level by placing malicious files. rity. He has been an active speaker at con- The malware programs follow the concept of cross ferences like RSA, TRISC, Hacker Halted, linking in which one malicious binary is interfaced ExCaliburCon, EuSecwest, XCON, OWASP AppSec, Security- with another malicious binary with randomized Byte, CERT-IN and has written content for HITB Ezine, Ha- names. This becomes hard for a normal user to detect kin9, Usenix Login.He may be reached at adi_ks@secniche.org. the real working of the binary present in the requisite program files folder. Dr. Richard Enbody is an Associate Profes- sor in the Department of Computer Science • Inserting malicious, e.g.,. porn website, links in the and Engineering, Michigan State Universi- browser bookmarks and shortcuts to be placed in the ty. He joined the faculty in 1987 after earn- program bars on the desktop that further links ma- ing his Ph.D. in Computer Science from licious website and malware programs respectively. the University of Minnesota. Richard’s The main criterion of this type of functionality is to research interests are in computer security, infect the generic places in the systems which are used computer architecture, web-based distance by the victims easily. education, and parallel processing. He has • It primarily hijacks the default browser links and web- two patents pending on hardware buffer-overflow protection, pages and points to a malicious website or custom- which will prevent most computer worms and viruses. He re- cently co-authored a CS1 Python book, The Practice of Comput- 20 Drive by Downloads, http://www.spywarewarrior.com/uiuc/dbd-anatomy.htm. ing using Python. He may be reached at enbody@cse.msu.edu. ©2010 Information Systems Security Association • www.issa.org • editor@issa.org • Permission for author use only. 35