ReadPDFFile V2 gives error when reading PDF file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ReadPDFFile V2 gives error when reading PDF file

L2 Linker

Hi everyone,

 

I was trying to make a playbook to extract indicators (Hash values, domains, IP addresses) from a PDF file. I tried to use the ReadPDFFile V2 utility, however it gives the below error on 2 of the PDF files I tried.

 

Command: 
!ReadPDFFileV2 entryID="29@14" maxImages="20" auto-extract="inline"(Scripts)
Reason
Could not load pdf file in EntryID 29@14 Error: 'http://www.w3.org/1999/xhtml'
 
Any idea how I can resolve this?
I though it was the PDF version at first (the original file is 1.5), so i tried converting to v1.8 and still it failed.
 
Thanks in advance.
1 ACCEPTED SOLUTION

Accepted Solutions

L2 Linker

jwilkes_0-1644418739377.png

Yes, this looks related.  Glad to help!

 

View solution in original post

7 REPLIES 7

L2 Linker

Good morning, is 'http://www.w3.org/1999/xhtml' an indicator inside the PDF?

Hi @jwilkes 

 

It is not present in the file. There are 2 other domains not related to this and a couple of hashes and CVE.

 

 

L2 Linker

Do other PDFs with the same PDF version work with ReadPDFFileV2 ?

Hi @jwilkes 

 

I tried another file, the PDF present in the below site as testing. That also failed with the same error. 

https://www.ncsc.gov.uk/news/indicators-of-compromise-for-malware-used-by-apt28

 

Since I am experimenting I am using the playbook "Phishing - Generic v3". The ReadPDFFilev2 is present in it and it stops there with the above error.

 

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!