Skip to content

Commit

Permalink
Worked on artifact definition naming convention (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Mar 13, 2022
1 parent 90fbb35 commit 6b47539
Show file tree
Hide file tree
Showing 7 changed files with 245 additions and 283 deletions.
2 changes: 1 addition & 1 deletion artifacts/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def RegisterDefinition(self, artifact_definition):

if alias_lower in self._artifact_definitions_by_name:
raise KeyError(
'Artifact definition alias: {1:s} already used as name.'.format(
'Artifact definition alias: {0:s} already used as name.'.format(
alias))

self._artifact_definitions_by_name[artifact_definition_name] = (
Expand Down
2 changes: 1 addition & 1 deletion config/dpkg/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ artifacts (20220313-1) unstable; urgency=low

* Auto-generated

-- Forensic artifacts <forensicartifacts@googlegroups.com> Sun, 13 Mar 2022 12:22:59 +0100
-- Forensic artifacts <forensicartifacts@googlegroups.com> Sun, 13 Mar 2022 16:45:13 +0100
60 changes: 31 additions & 29 deletions data/macos.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Mac OS (Darwin) specific artifacts.
---
name: MacOSAirportPreferencesPlistFile
aliases: [MacOSWirelessNetworks]
doc: Airport (wireless networking) preferences property list (plist) file.
sources:
- type: FILE
attributes: {paths: ['/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist']}
supported_os: [Darwin]
urls: ['https://forensicswiki.xyz/wiki/index.php?title=Mac_OS_X_10.9_-_Artifacts_Location#Networking']
---
name: MacOSAppleSetupDoneFile
aliases: [MacOSSystemInstallationTime]
doc: Mac OS .AppleSetupDone file that hints to the system installation date and time.
Expand Down Expand Up @@ -413,8 +422,9 @@ sources:
cmd: /usr/bin/hdiutil
supported_os: [Darwin]
---
name: MacOSNotificationCenter
doc: MacOS NotificationCenter database
name: MacOSNotificationCenterSQLiteDatabaseFile
aliases: [MacOSNotificationCenter]
doc: MacOS NotificationCenter SQLite database files.
sources:
- type: FILE
attributes:
Expand Down Expand Up @@ -460,8 +470,9 @@ urls:
- 'https://www.freebsd.org/cgi/man.cgi?periodic'
- 'https://www.freebsd.org/cgi/man.cgi?periodic.conf'
---
name: MacOSQuarantineEvents
doc: Quarantine Event Database
name: MacOSQuarantineEventsSQLiteDatabaseFile
aliases: [MacOSQuarantineEvents]
doc: Quarantine events SQLite database file.
sources:
- type: FILE
attributes:
Expand All @@ -487,8 +498,8 @@ sources:
attributes:
paths:
- '/private/var/db/RemoteManagement/ClientCaches/*'
- '/var/db/RemoteManagement/ClientCaches/*'
- '/private/var/db/RemoteManagement/RMDB/rmdb.sqlite3'
- '/var/db/RemoteManagement/ClientCaches/*'
- '/var/db/RemoteManagement/RMDB/rmdb.sqlite3'
supported_os: [Darwin]
urls:
Expand Down Expand Up @@ -607,6 +618,18 @@ sources:
supported_os: [Darwin]
urls: ['https://forensicswiki.xyz/wiki/index.php?title=Mac_OS_X_10.9_-_Artifacts_Location#System_Settings_and_Informations']
---
name: MacOSTCCSQLiteDatabaseFile
aliases: [MacOSTCC]
doc: Transparency, Consent, Control (TCC) framework SQLite database files.
sources:
- type: FILE
attributes:
paths:
- '%%users.homedir%%/Library/Application Support/com.apple.TCC/TCC.db'
- '/Library/Application Support/com.apple.TCC/TCC.db'
supported_os: [Darwin]
urls: ['https://forensicswiki.xyz/wiki/index.php?title=TCC_database']
---
name: MacOSTimeMachinePlistFile
doc: Time Machine information property list (plist) file
sources:
Expand Down Expand Up @@ -752,8 +775,9 @@ sources:
supported_os: [Darwin]
urls: ['https://forensicswiki.xyz/wiki/index.php?title=Mac_OS_X_10.9_-_Artifacts_Location#User_Directories']
---
name: MacOSUserSocialAccounts
doc: User's Social Accounts
name: MacOSUserAccountsSQLiteDatabaseFile
aliases: [MacOSUserSocialAccounts]
doc: User Accounts SQLite database files.
sources:
- type: FILE
attributes:
Expand Down Expand Up @@ -784,25 +808,3 @@ sources:
- '/var/run/utmpx'
supported_os: [Darwin]
urls: ['https://github.com/libyal/dtformats/blob/main/documentation/Utmp%20login%20records%20format.asciidoc']
---
name: MacOSAirportPreferencesPlistFile
aliases: [MacOSWirelessNetworks]
doc: Airport (wireless networking) preferences property list (plist) file.
sources:
- type: FILE
attributes: {paths: ['/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist']}
supported_os: [Darwin]
urls: ['https://forensicswiki.xyz/wiki/index.php?title=Mac_OS_X_10.9_-_Artifacts_Location#Networking']
---
name: MacOSTCC
doc: Apple's Transparency, Consent, Control (TCC) framework database
sources:
- type: FILE
attributes:
paths:
- '/Library/Application Support/com.apple.TCC/TCC.db'
- '%%users.homedir%%/Library/Application Support/com.apple.TCC/TCC.db'
supported_os: [Darwin]
urls:
- https://blog.fleetsmith.com/tcc-a-quick-primer/
- https://carlashley.com/2018/09/06/reading-tcc-logs-in-macos/
16 changes: 7 additions & 9 deletions data/unix_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,16 @@ sources:
supported_os: [Darwin]
supported_os: [Darwin, Linux]
---
name: UnixSudoersConfiguration
doc: Unix sudoers configuration.
name: UnixSudoersConfigurationFile
aliases: [UnixSudoersConfiguration]
doc: Unix sudoers configuration file.
sources:
- type: FILE
attributes:
paths:
- '/etc/sudoers'
- '/private/etc/sudoers'
supported_os: [Darwin]
- type: FILE
attributes: {paths: ['/etc/sudoers']}
supported_os: [Linux]
supported_os: [Darwin, Linux]
- type: FILE
attributes: {paths: ['/private/etc/sudoers']}
supported_os: [Darwin]
supported_os: [Darwin, Linux]
---
name: UnixUsersGroups
Expand Down

0 comments on commit 6b47539

Please sign in to comment.