Skip to content
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

Create calls sub-categories based on mimeType and ufed:Source (#2170) #2171

Merged
merged 9 commits into from
May 30, 2024
11 changes: 10 additions & 1 deletion iped-app/resources/config/conf/CategoriesConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,16 @@
]}
]},
{"name": "Extraction Summary", "mimes": ["application/x-ufed-html-summary"]},
{"name": "Calls", "mimes": ["application/x-ufed-html-calls", "application/x-ufed-call", "call/x-threema-call", "call/x-whatsapp-call", "call/x-telegram-call", "call/x-discord-call", "application/x-ios-calllog-db", "application/x-ios8-calllog-db"]},
{"name": "Calls", "categories":[
{"name": "Discord Calls", "mimes":["call/x-discord-call"]},
{"name": "Facebook Calls", "mimes":[]},
{"name": "Phone Calls", "mimes":[]},
{"name": "Signal Calls", "mimes":[]},
{"name": "Telegram Calls", "mimes":["call/x-telegram-call"]},
{"name": "Threema Calls", "mimes":["call/x-threema-call"]},
{"name": "WhatsApp Calls", "mimes":["call/x-whatsapp-call"]},
{"name": "Other Calls", "mimes":["application/x-ufed-html-calls", "application/x-ufed-call", "application/x-ios-calllog-db", "application/x-ios8-calllog-db"]}
]},
{"name": "SMS Messages", "mimes": ["application/x-ufed-html-sms", "application/x-ufed-sms", "application/x-ios-sms-db"]},
{"name": "MMS Messages", "mimes": ["application/x-ufed-html-mms", "application/x-ufed-mms"]},
{"name": "Instant Messages", "mimes": ["message/x-chat-message", "message/x-threema-message", "application/x-ufed-instantmessage", "message/x-whatsapp-message", "message/x-skype-message", "message/x-skype-filetransfer", "message/x-telegram-message", "message/x-discord-message"]},
Expand Down
8 changes: 8 additions & 0 deletions iped-app/resources/localization/iped-categories.properties
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ Folders=Folders
Scanned\ Documents=Scanned\ Documents
Extraction\ Summary=Extraction\ Summary
Calls=Calls
Discord\ Calls=Discord\ Calls
Facebook\ Calls=Facebook\ Calls
Other\ Calls=Other\ Calls
Phone\ Calls=Phone\ Calls
Signal\ Calls=Signal\ Calls
Telegram\ Calls=Telegram\ Calls
Threema\ Calls=Threema\ Calls
WhatsApp\ Calls=WhatsApp\ Calls
SMS\ Messages=SMS\ Messages
MMS\ Messages=MMS\ Messages
Instant\ Messages=Instant\ Messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ Folders=Verzeichnisse
Scanned\ Documents=gescannte\ Dokumente
Extraction\ Summary=Extraktions-Zusammenfassung
Calls=Anrufe
Discord\ Calls=Discord\ Calls[TBT]
Facebook\ Calls=Facebook\ Calls[TBT]
Other\ Calls=Other\ Calls[TBT]
Phone\ Calls=Phone\ Calls[TBT]
Signal\ Calls=Signal\ Calls[TBT]
Telegram\ Calls=Telegram\ Calls[TBT]
Threema\ Calls=Threema\ Calls[TBT]
WhatsApp\ Calls=WhatsApp\ Calls[TBT]
SMS\ Messages=SMS\ Nachrichten
MMS\ Messages=MMS\ Nachrichten
Instant\ Messages=Sofortnachrichten
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ Folders=Carpetas
Scanned\ Documents=Documentos\ Escaneados
Extraction\ Summary=Resumen\ Extracción
Calls=Reg.\ Llamadas
Discord\ Calls=Discord\ Calls[TBT]
Facebook\ Calls=Facebook\ Calls[TBT]
Other\ Calls=Other\ Calls[TBT]
Phone\ Calls=Phone\ Calls[TBT]
Signal\ Calls=Signal\ Calls[TBT]
Telegram\ Calls=Telegram\ Calls[TBT]
Threema\ Calls=Threema\ Calls[TBT]
WhatsApp\ Calls=WhatsApp\ Calls[TBT]
SMS\ Messages=Mensajes\ SMS
MMS\ Messages=Mensajes\ MMS
Instant\ Messages=Mensajes\ Instantáneos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ Folders=Dossiers
Scanned\ Documents=Documents\ Scannés
Extraction\ Summary=Résumé\ de\ l'Extraction
Calls=Appels
Discord\ Calls=Discord\ Calls[TBT]
Facebook\ Calls=Facebook\ Calls[TBT]
Other\ Calls=Other\ Calls[TBT]
Phone\ Calls=Phone\ Calls[TBT]
Signal\ Calls=Signal\ Calls[TBT]
Telegram\ Calls=Telegram\ Calls[TBT]
Threema\ Calls=Threema\ Calls[TBT]
WhatsApp\ Calls=WhatsApp\ Calls[TBT]
SMS\ Messages=SMS
MMS\ Messages=MMS
Instant\ Messages=Messages\ Instantanés
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ Folders=Cartelle
Scanned\ Documents=Documenti\ scansionati
Extraction\ Summary=Sommario\ estrazione
Calls=Chiamate
Discord\ Calls=Discord\ Calls[TBT]
Facebook\ Calls=Facebook\ Calls[TBT]
Other\ Calls=Other\ Calls[TBT]
Phone\ Calls=Phone\ Calls[TBT]
Signal\ Calls=Signal\ Calls[TBT]
Telegram\ Calls=Telegram\ Calls[TBT]
Threema\ Calls=Threema\ Calls[TBT]
WhatsApp\ Calls=WhatsApp\ Calls[TBT]
SMS\ Messages=Messaggi\ SMS
MMS\ Messages=Messaggi\ MMS
Instant\ Messages=Messaggi\ istantanei
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ Folders=Pastas
Scanned\ Documents=Possíveis\ Digitalizações
Extraction\ Summary=Resumo\ da\ Extração
Calls=Chamadas
Discord\ Calls=Chamadas\ Discord
Facebook\ Calls=Chamadas\ Facebook
Other\ Calls=Outras\ Chamadas
Phone\ Calls=Chamadas\ Telefônicas
Signal\ Calls=Chamadas\ Signal
Telegram\ Calls=Chamadas\ Telegram
Threema\ Calls=Chamadas\ Threema
WhatsApp\ Calls=Chamadas\ WhatsApp
SMS\ Messages=Mensagens\ SMS
MMS\ Messages=Mensagens\ MMS
Instant\ Messages=Mensagens\ Instantâneas
Expand Down
26 changes: 26 additions & 0 deletions iped-app/resources/scripts/tasks/RefineCategoryTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,32 @@ function process(e){
}
}

// Calls sub-categories
if (mime.equals("application/x-ufed-call")) {
source = e.getMetadata().get("ufed:Source");
if (source == null) {
e.setCategory("Phone Calls");
} else {
source = source.toLowerCase();
if (source.contains("whatsapp")) {
e.setCategory("WhatsApp Calls");
} else if (source.contains("facebook")) {
e.setCategory("Facebook Calls");
} else if (source.contains("discord")) {
e.setCategory("Discord Calls");
} else if (source.contains("threema")) {
e.setCategory("Threema Calls");
} else if (source.contains("telegram")) {
e.setCategory("Telegram Calls");
} else if (source.contains("signal")) {
e.setCategory("Signal Calls");
} else {
lfcnassif marked this conversation as resolved.
Show resolved Hide resolved
// New sub-categories may be created from other phone call apps handled by UFED
e.setCategory("Other Calls");
}
}
}

// Usually, conditions that overwrite the category (using setCategory())
// should go before the ones that add other categories (using addCategory()).

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading