3.2 KiB
3.2 KiB
@redeye/parser-core / ParserLogEntry
Interface: ParserLogEntry
Table of contents
Properties
Properties
blob
• blob: string
The text of the log entry, can be a command input or output
Example
blob = 'ls';
blob = 'cd C:\\Users\\admin\\Desktop';
blob = 'dir';
blob = '[System Process]\nsmss.exe\n...etc';
Defined in
dateTime
• Optional dateTime: Date
The date and time the log entry was created
Example
dateTime = new Date('2021-01-01T00:00:00.000Z');
Defined in
filepath
• Optional filepath: string
Local path to the file that the log entry was found in
Example
filepath = '<directory-of-parser>/logs/2023-02-01/log-1.txt';
Defined in
lineNumber
• Optional lineNumber: number
The starting line number of the log entry in the file
Example
lineNumber = 123;
Defined in
lineType
• Optional lineType: "METADATA" | "INPUT" | "TASK" | "CHECKIN" | "OUTPUT" | "MODE" | "ERROR" | "INDICATOR"
The type of log line if the logType is 'BEACON'
Example
// If the log entry is a command input
logType = 'INPUT';
// If the log entry is a command output
logType = 'OUTPUT';
// If the log entry is a beacon status checkin with the server
logType = 'CHECKIN';
// If the log entry is the C2 server acknowledging a command
logType = 'TASK';
// If the log entry is an error of any kind
logType = 'ERROR';
// If the log entry is miscellaneous metadata tied to a beacon
logType = 'METADATA';
Defined in
logType
• logType: "BEACON" | "EVENT" | "DOWNLOAD" | "WEBLOG" | "KEYSTROKES" | "UNKNOWN"
The type of log entry
Example
// A beacon log entry
logType = 'BEACON';
// Misc events on the C2 server (e.g. operator login)
logType = 'EVENT';
// A file download from a beacon
logType = 'DOWNLOAD';
// A web log entry from a beacon
logType = 'WEBLOG';
// A keystroke log entry from a beacon
logType = 'KEYSTROKES';
// Any other log entry
logType = 'UNKNOWN';