forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
- Loading branch information
Showing
11 changed files
with
278 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.8.5 | ||
5.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
import { useSelector } from 'react-redux' | ||
import { CippPageList } from 'src/components/layout' | ||
|
||
const columns = [ | ||
{ | ||
name: 'Risk Last Updated Date', | ||
selector: (row) => row['riskLastUpdatedDateTime'], | ||
sortable: true, | ||
exportSelector: 'riskLastUpdatedDateTime', | ||
}, | ||
{ | ||
name: 'User Principal Name', | ||
selector: (row) => row['userPrincipalName'], | ||
sortable: true, | ||
exportSelector: 'userPrincipalName', | ||
}, | ||
{ | ||
name: 'Risk Level', | ||
selector: (row) => row['riskLevel'], | ||
sortable: true, | ||
exportSelector: 'riskLevel', | ||
}, | ||
{ | ||
name: 'Risk State', | ||
selector: (row) => row['riskState'], | ||
sortable: true, | ||
exportSelector: 'riskState', | ||
}, | ||
{ | ||
name: 'Risk Detail', | ||
selector: (row) => row['riskDetail'], | ||
sortable: true, | ||
exportSelector: 'riskDetail', | ||
}, | ||
{ | ||
name: 'isProcessing', | ||
selector: (row) => row['isProcessing'], | ||
sortable: true, | ||
exportSelector: 'isProcessing', | ||
}, | ||
{ | ||
name: 'isDeleted', | ||
selector: (row) => row['isDeleted'], | ||
sortable: true, | ||
exportSelector: 'isDeleted', | ||
}, | ||
] | ||
|
||
const RiskyUsers = () => { | ||
const tenant = useSelector((state) => state.app.currentTenant) | ||
|
||
return ( | ||
<> | ||
<CippPageList | ||
title="Risky Users" | ||
capabilities={{ allTenants: true, helpContext: 'https://google.com' }} | ||
datatable={{ | ||
filterlist: [ | ||
{ | ||
filterName: 'State: none', | ||
filter: 'Complex: riskState eq none', | ||
}, | ||
{ | ||
filterName: 'State: atRisk', | ||
filter: 'Complex: riskState eq atRisk', | ||
}, | ||
{ | ||
filterName: 'State: confirmedCompromised', | ||
filter: 'Complex: riskState eq confirmedCompromised', | ||
}, | ||
{ | ||
filterName: 'State: confirmedSafe', | ||
filter: 'Complex: riskState eq confirmedSafe', | ||
}, | ||
{ | ||
filterName: 'State: dismissed', | ||
filter: 'Complex: riskState eq dismissed', | ||
}, | ||
{ | ||
filterName: 'State: remediated', | ||
filter: 'Complex: riskState eq remediated', | ||
}, | ||
{ | ||
filterName: 'State: unknownFutureValue', | ||
filter: 'Complex: riskState eq unknownFutureValue', | ||
}, | ||
], | ||
columns: columns, | ||
path: `api/ListGraphRequest`, | ||
reportName: `${tenant?.defaultDomainName}-ListRiskyUsers`, | ||
params: { | ||
TenantFilter: tenant?.defaultDomainName, | ||
Endpoint: `identityProtection/riskyUsers`, | ||
$count: true, | ||
$orderby: 'riskLastUpdatedDateTime', | ||
}, | ||
}} | ||
/> | ||
</> | ||
) | ||
} | ||
|
||
export default RiskyUsers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
import { useSelector } from 'react-redux' | ||
import { CippPageList } from 'src/components/layout' | ||
import { CellTip } from 'src/components/tables' | ||
|
||
const columns = [ | ||
{ | ||
name: 'Detected Date', | ||
selector: (row) => row['detectedDateTime'], | ||
sortable: true, | ||
exportSelector: 'detectedDateTime', | ||
}, | ||
{ | ||
name: 'User Principal Name', | ||
selector: (row) => row['userPrincipalName'], | ||
sortable: true, | ||
exportSelector: 'userPrincipalName', | ||
}, | ||
{ | ||
name: 'Location', | ||
selector: (row) => `${row.location?.city} - ${row.location?.countryOrRegion}`, | ||
sortable: true, | ||
exportSelector: 'Location', | ||
cell: (row) => CellTip(`${row.location?.city} - ${row.location?.countryOrRegion}`), | ||
}, | ||
{ | ||
name: 'IP Address', | ||
selector: (row) => row['ipAddress'], | ||
sortable: true, | ||
exportSelector: 'ipAddress', | ||
}, | ||
{ | ||
name: 'Risk State', | ||
selector: (row) => row['riskState'], | ||
sortable: true, | ||
exportSelector: 'riskState', | ||
}, | ||
{ | ||
name: 'Risk Detail', | ||
selector: (row) => row['riskDetail'], | ||
sortable: true, | ||
exportSelector: 'riskDetail', | ||
}, | ||
{ | ||
name: 'Risk Level', | ||
selector: (row) => row['riskLevel'], | ||
sortable: true, | ||
exportSelector: 'riskLevel', | ||
}, | ||
{ | ||
name: 'Risk Type', | ||
selector: (row) => row['riskType'], | ||
sortable: true, | ||
exportSelector: 'riskType', | ||
}, | ||
{ | ||
name: 'Risk Event Type', | ||
selector: (row) => row['riskEventType'], | ||
sortable: true, | ||
exportSelector: 'riskEventType', | ||
}, | ||
{ | ||
name: 'Detection Type', | ||
selector: (row) => row['detectionTimingType'], | ||
sortable: true, | ||
exportSelector: 'detectionTimingType', | ||
}, | ||
{ | ||
name: 'Activity', | ||
selector: (row) => row['activity'], | ||
sortable: true, | ||
exportSelector: 'activity', | ||
}, | ||
] | ||
|
||
const RiskDetections = () => { | ||
const tenant = useSelector((state) => state.app.currentTenant) | ||
|
||
return ( | ||
<> | ||
<CippPageList | ||
title="Risk Detection Report" | ||
capabilities={{ allTenants: true, helpContext: 'https://google.com' }} | ||
datatable={{ | ||
filterlist: [ | ||
{ | ||
filterName: 'State: atRisk', | ||
filter: 'Complex: riskState eq atRisk', | ||
}, | ||
{ | ||
filterName: 'State: confirmedCompromised', | ||
filter: 'Complex: riskState eq confirmedCompromised', | ||
}, | ||
{ | ||
filterName: 'State: confirmedSafe', | ||
filter: 'Complex: riskState eq confirmedSafe', | ||
}, | ||
{ | ||
filterName: 'State: dismissed', | ||
filter: 'Complex: riskState eq dismissed', | ||
}, | ||
{ | ||
filterName: 'State: remediated', | ||
filter: 'Complex: riskState eq remediated', | ||
}, | ||
{ | ||
filterName: 'State: unknownFutureValue', | ||
filter: 'Complex: riskState eq unknownFutureValue', | ||
}, | ||
], | ||
columns: columns, | ||
path: `api/ListGraphRequest`, | ||
reportName: `${tenant?.defaultDomainName}-RiskDetections-Report`, | ||
params: { | ||
TenantFilter: tenant?.defaultDomainName, | ||
Endpoint: `identityProtection/riskDetections`, | ||
$count: true, | ||
$orderby: 'detectedDateTime', | ||
}, | ||
}} | ||
/> | ||
</> | ||
) | ||
} | ||
|
||
export default RiskDetections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.8.5 | ||
5.9.0 |