Skip to content

Commit

Permalink
Include modified data in info card
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Dec 21, 2024
1 parent 2649b11 commit 723a43a
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 48 deletions.
30 changes: 27 additions & 3 deletions src/definitions/dfiqDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const DFIQ_TYPES = [
{ field: "dfiq_tags", type: "list", label: "DFIQ tags", displayList: true, editable: true },
{ field: "contributors", type: "list", label: "Contributors", displayList: false, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "modified", type: "date", label: "Modified on", displayList: false, editable: false },
{
field: "created",
type: "date",
Expand All @@ -52,6 +51,15 @@ export const DFIQ_TYPES = [
editable: false,
width: "200px",
sortable: true
},
{
field: "modified",
type: "date",
label: "Modified on",
width: "200px",
displayList: true,
editable: false,
sortable: true
}
],
filterAliases: ["dfiq_tags", "dfiq_id"],
Expand Down Expand Up @@ -101,7 +109,6 @@ export const DFIQ_TYPES = [
{ field: "parent_ids", type: "list", label: "Parent IDs", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "contributors", type: "list", label: "Contributors", displayList: false, editable: true },
{ field: "modified", type: "date", label: "Modified on", displayList: false, editable: false },
{
field: "created",
type: "date",
Expand All @@ -110,6 +117,15 @@ export const DFIQ_TYPES = [
editable: false,
width: "200px",
sortable: true
},
{
field: "modified",
type: "date",
label: "Modified on",
width: "200px",
displayList: true,
editable: false,
sortable: true
}
],
filterAliases: ["dfiq_tags", "dfiq_id", "parent_ids"],
Expand Down Expand Up @@ -159,7 +175,6 @@ export const DFIQ_TYPES = [
{ field: "parent_ids", type: "list", label: "Parent IDs", displayList: true, editable: true },
{ field: "contributors", type: "list", label: "Contributors", displayList: false, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "modified", type: "date", label: "Modified on", displayList: false, editable: false },
{
field: "created",
type: "date",
Expand All @@ -168,6 +183,15 @@ export const DFIQ_TYPES = [
editable: false,
width: "200px",
sortable: true
},
{
field: "modified",
type: "date",
label: "Modified on",
width: "200px",
displayList: true,
editable: false,
sortable: true
}
],
filterAliases: ["dfiq_tags", "dfiq_id", "parent_ids"],
Expand Down
123 changes: 111 additions & 12 deletions src/definitions/entityDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ENTITY_TYPES = [
{
field: "created",
type: "date",
label: "Created on",
label: "Created",
displayList: true,
editable: false,
sortable: true,
Expand All @@ -33,7 +33,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["reference"],
icon: "mdi-fire",
Expand Down Expand Up @@ -72,7 +81,16 @@ export const ENTITY_TYPES = [
},
{ field: "family", type: "text", label: "Family", displayList: true, editable: true },
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["family", "aliases"],
icon: "mdi-spider",
Expand Down Expand Up @@ -111,7 +129,16 @@ export const ENTITY_TYPES = [
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "kill_chain_phases", type: "list", label: "Kill chain phases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-tools",
Expand Down Expand Up @@ -150,7 +177,16 @@ export const ENTITY_TYPES = [
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "kill_chain_phases", type: "list", label: "Kill chain phases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-flash",
Expand Down Expand Up @@ -191,7 +227,16 @@ export const ENTITY_TYPES = [
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "threat_actor_types", type: "list", label: "Threat actor types", displayList: true, editable: true },
{ field: "first_seen", type: "date", label: "First seen", displayList: true, editable: true, width: "200px" },
{ field: "last_seen", type: "date", label: "Last seen", displayList: true, editable: true, width: "200px" }
{ field: "last_seen", type: "date", label: "Last seen", displayList: true, editable: true, width: "200px" },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-incognito",
Expand Down Expand Up @@ -229,7 +274,16 @@ export const ENTITY_TYPES = [
sortable: true
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-account-tie",
Expand Down Expand Up @@ -285,7 +339,16 @@ export const ENTITY_TYPES = [
sortable: true
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-bullhorn",
Expand Down Expand Up @@ -323,7 +386,16 @@ export const ENTITY_TYPES = [
sortable: true
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-information-outline",
Expand Down Expand Up @@ -360,7 +432,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-office-building",
Expand Down Expand Up @@ -398,7 +479,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["title"],
icon: "mdi-shield-alert",
Expand Down Expand Up @@ -435,7 +525,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-medical-bag",
Expand Down
66 changes: 60 additions & 6 deletions src/definitions/indicatorDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ export const INDICATOR_TYPES = [
editable: true,
width: "160px"
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-script-text-outline",
Expand Down Expand Up @@ -82,7 +91,16 @@ export const INDICATOR_TYPES = [
editable: true,
width: "160px"
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-regex",
Expand Down Expand Up @@ -131,7 +149,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["target_systems"],
icon: "mdi-database-search",
Expand Down Expand Up @@ -171,7 +198,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-code-braces",
Expand Down Expand Up @@ -211,7 +247,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-security-network",
Expand Down Expand Up @@ -251,7 +296,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-xml",
Expand Down
Loading

0 comments on commit 723a43a

Please sign in to comment.