-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NullTypeNode' object has no attribute 'find_end_of_stream' #40
Comments
Hi @linedash Thanks for taking the time to report this issue! Are you able to share an evtx file that demonstrates this issue? I've learned that its critical to add unit and regression tests as we find issues to 1) demonstrate bugs, and 2) ensure they don't creep back in. I can always try to blindly fix a bug, but I strongly prefer not to do this. |
Would it be possible to get an email address or somewhere I could send one a link to one? I wouldn't be comfortable releasing it into the wild due to the nature of the data. I'll see if I can get someone to sign off on me releasing the data in the meantime. |
Hey @linedash,
No problem. At least seeing the source data will allow me to triage the
issue. You can email me at: [email protected].
…On Fri, Jul 21, 2017 at 4:08 AM linedash ***@***.***> wrote:
Hi @williballenthin <https://github.com/williballenthin>
Would it be possible to get an email address or somewhere I could send one
a link to one? I wouldn't be comfortable releasing it into the wild due to
the nature of the data.
I'll see if I can get someone to sign off on me releasing the data in the
meantime.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJjkBkIl41okONiTKYnkFRSaCMFOAL9ks5sQFx-gaJpZM4Oc1H7>
.
|
Hello, After checking couple of document. It looks like for this error there are some new specifications. Is it possible to let me know which file I have to change to handle this exception. In the new RPC document published by microsoft. https://msdn.microsoft.com/en-us/library/cc231282.aspx I am seeing a section which could possibly fix this issue. Before emitting anything, the tool SHOULD verify that the attribute data, as specified by the Any help to fix this would be wonderful. Thank you in advance for taking a looking into this. |
Hi @williballenthin, I have been trying to convert the .evtx logs to XML. With the help of your code, I am able to convert a set of logs and few logs I'm not able to convert. I'm getting this error : Traceback (most recent call last): Please help me in resolving the issue... |
I just triggered this same issue on a file from a memory sample. |
I've been trying to parse some .evtx aswell and experienced the same behaviour. From what I've tried and what I see in the comments above (the names of the test files of @sanju1323 and @linedash ), it seems to be an issue with the ForwardedEvents type. I looked at the structure of the BinXML of this type of events and it seems to be quite different, but I'm unable to adapt the library so far. On an Application .evtx I don't trigger the error : evtx_structure.py Application.evtx | head -50
File header
magic: ElfFile
oldest_chunk: 0x0
current_chunk_number: 0x7e
next_record_number: 0x4ecf
header_size: 0x80
minor_version: 0x1
major_version: 0x3
header_chunk_size: 0x1000
chunk_count: 0x7f
flags: 0x1
checksum: 0x87589e25
verify: True
dirty: True
full: False
Chunk
offset: 0x1000
magic: ElfChnk
file_first_record_number: 0x1
file_last_record_number: 0x74
log_first_record_number: 0x1
log_last_record_number: 0x74
header_size: 0x80
last_record_offset: 0xfdf8
next_record_offset: 0xfec8
data_checksum: 0xe8788113
header_checksum: 0x51b42232
verify: True
templates: 0
Record
offset: 0x1200
magic: 0x2a2a
size: 0x7b8
number: 0x1
timestamp: 2012-07-09 07:02:00
verify: True
RootNode(offset=0x18)
StreamStartNode(offset=0x18)
TemplateInstanceNode(offset=0x1c, resident=True, length=0x575)
TemplateNode(offset=0x26)
StreamStartNode(offset=0x3e)
OpenStartElementNode(offset=0x42) --> Event
AttributeNode(offset=0x65) --> xmlns
ValueNode(offset=0x7e)
WstringTypeNode(offset=0x80) --> http://schemas.microsoft.com/win/2004/08/events/event
CloseStartElementNode(offset=0xec)
OpenStartElementNode(offset=0xed) --> System
CloseStartElementNode(offset=0x10e)
OpenStartElementNode(offset=0x10f) --> Provider
AttributeNode(offset=0x138) --> Name
[...] On a ForwardedEvent I trigger errors : evtx_structure.py Forward.evtx | head -50
File header
magic: ElfFile
oldest_chunk: 0x0
current_chunk_number: 0x10
next_record_number: 0xf0
header_size: 0x80
minor_version: 0x1
major_version: 0x3
header_chunk_size: 0x1000
chunk_count: 0x11
flags: 0x0
checksum: 0xf278fc1e
verify: True
dirty: False
full: False
Chunk
offset: 0x1000
magic: ElfChnk
file_first_record_number: 0x1
file_last_record_number: 0xa
log_first_record_number: 0x1
log_last_record_number: 0xa
header_size: 0x80
last_record_offset: 0xc628
next_record_offset: 0xea10
data_checksum: 0xea19cd0c
header_checksum: 0x5e0c09b8
verify: True
templates: 0
Record
offset: 0x1200
magic: 0x2a2a
size: 0x1400
number: 0x1
timestamp: 2019-04-10 10:42:26.529150
verify: True
RootNode(offset=0x18)
ERROR: 'NullTypeNode' object has no attribute 'find_end_of_stream'
Record
offset: 0x2600
magic: 0x2a2a
size: 0x1148
number: 0x2
timestamp: 2019-04-10 10:42:26.529150
verify: True
RootNode(offset=0x18)
ERROR: Tried to parse beyond the end of the file (read: 0x731006, buffer length: 0x111000)
Record
offset: 0x3748
magic: 0x2a2a
size: 0x1148
number: 0x3
timestamp: 2019-04-10 10:42:26.529150
verify: True
RootNode(offset=0x18)
ERROR: Tried to parse beyond the end of the file (read: 0x731006, buffer length: 0x111000)
Record
offset: 0x4890
magic: 0x2a2a
size: 0x1148
number: 0x4
timestamp: 2019-04-10 10:42:26.529150
verify: True
RootNode(offset=0x18)
ERROR: Tried to parse beyond the end of the file (read: 0x731006, buffer length: 0x111000)
Record
offset: 0x59d8
magic: 0x2a2a
size: 0x1148
number: 0x5
[...] Hope it helps resolving this issue |
Hi,
When attempting to parse an evtx file as gathered by a collector on a Win server 2012 R2 box ; I get the following errors:
running Python 2.7.9 on Debian 8. I installed the current version of python-evtx using the setup.py utility from the github download. Please let me know if you need any more details.
The text was updated successfully, but these errors were encountered: