Skip to content

Commit

Permalink
implement route 'infra / knowledge / incident' (#6415)
Browse files Browse the repository at this point in the history
  • Loading branch information
frapuks committed Mar 22, 2024
1 parent 3b6f844 commit 12540ed
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ class RootPosition extends Component {
'countries',
'areas',
'cities',
'locations',
'threat_actors',
'intrusion_sets',
'campaigns',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,22 @@ const InfrastructureKnowledge = ({ infrastructure }: { infrastructure: Infrastru
/>
)}
/>
<Route
exact
path="/dashboard/observations/infrastructures/:infrastructureId/knowledge/incidents"
render={(routeProps) => (
<EntityStixCoreRelationships
entityId={infrastructureData.id}
relationshipTypes={['uses', 'compromises']}
stixCoreObjectTypes={['Incident']}
entityLink={link}
isRelationReversed={true}
defaultStartTime={infrastructureData.first_seen}
defaultStopTime={infrastructureData.last_seen}
{...routeProps}
/>
)}
/>
</>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ class RootAttackPattern extends Component {
'tools',
'vulnerabilities',
'malwares',
'sightings',
'indicators',
'observables',
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class RootIntrusionSet extends Component {
'observables',
'infrastructures',
'sightings',
'observed_data',
]}
/>
</Route>
Expand Down

0 comments on commit 12540ed

Please sign in to comment.