Skip to content

Commit

Permalink
Merge pull request #32 from BenB196/staging
Browse files Browse the repository at this point in the history
Staging to Master
  • Loading branch information
BenB196 authored Apr 22, 2020
2 parents fb593ef + c8bac80 commit 4122ad3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.6
0.1.7
14 changes: 13 additions & 1 deletion ffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ type FileEvent struct {
IdentifiedExtensionMIMEType string `json:"identifiedExtensionMimeType,omitempty"`
CurrentExtensionMIMEType string `json:"currentExtensionMimeType,omitempty"`
SuspiciousFileTypeMismatch *bool `json:"suspiciousFileTypeMismatch,omitempty"`
PrintJobName string `json:"printJobName,omitempty"`
PrinterName string `json:"printerName,omitempty"`
PrintedFilesBackupPath string `json:"printedFilesBackupPath,omitempty"`
}

//Currently recognized csv headers
var csvHeaders = []string{"Event ID", "Event type", "Date Observed (UTC)", "Date Inserted (UTC)", "File path", "Filename", "File type", "File Category", "Identified Extension Category", "Current Extension Category", "File size (bytes)", "File Owner", "MD5 Hash", "SHA-256 Hash", "Create Date", "Modified Date", "Username", "Device ID", "User UID", "Hostname", "Fully Qualified Domain Name", "IP address (public)", "IP address (private)", "Actor", "Directory ID", "Source", "URL", "Shared", "Shared With", "File exposure changed to", "Cloud drive ID", "Detection Source Alias", "File Id", "Exposure Type", "Process Owner", "Process Name", "Tab/Window Title", "Tab URL", "Removable Media Vendor", "Removable Media Name", "Removable Media Serial Number", "Removable Media Capacity", "Removable Media Bus Type", "Removable Media Media Name", "Removable Media Volume Name", "Removable Media Partition Id", "Sync Destination", "Email DLP Policy Names", "Email DLP Subject", "Email DLP Sender", "Email DLP From", "Email DLP Recipients", "Outside Active Hours", "Identified Extension MIME Type", "Current Extension MIME Type", "Suspicious File Type Mismatch"}
var csvHeaders = []string{"Event ID", "Event type", "Date Observed (UTC)", "Date Inserted (UTC)", "File path", "Filename", "File type", "File Category", "Identified Extension Category", "Current Extension Category", "File size (bytes)", "File Owner", "MD5 Hash", "SHA-256 Hash", "Create Date", "Modified Date", "Username", "Device ID", "User UID", "Hostname", "Fully Qualified Domain Name", "IP address (public)", "IP address (private)", "Actor", "Directory ID", "Source", "URL", "Shared", "Shared With", "File exposure changed to", "Cloud drive ID", "Detection Source Alias", "File Id", "Exposure Type", "Process Owner", "Process Name", "Tab/Window Title", "Tab URL", "Removable Media Vendor", "Removable Media Name", "Removable Media Serial Number", "Removable Media Capacity", "Removable Media Bus Type", "Removable Media Media Name", "Removable Media Volume Name", "Removable Media Partition Id", "Sync Destination", "Email DLP Policy Names", "Email DLP Subject", "Email DLP Sender", "Email DLP From", "Email DLP Recipients", "Outside Active Hours", "Identified Extension MIME Type", "Current Extension MIME Type", "Suspicious File Type Mismatch", "Print Job Name", "Printer Name", "Printed Files Backup Path"}

//Structs of Crashplan FFS API Authentication Token Return
type AuthData struct {
Expand Down Expand Up @@ -516,6 +519,15 @@ func csvLineToFileEvent(csvLine []string) *FileEvent {
fileEvent.SuspiciousFileTypeMismatch = nil
}

//set printJobName
fileEvent.PrintJobName = csvLine[56]

//set printerName
fileEvent.PrinterName = csvLine[57]

//set printedFilesBackupPath
fileEvent.PrintedFilesBackupPath = csvLine[58]

return &fileEvent
}

Expand Down

0 comments on commit 4122ad3

Please sign in to comment.