Adds functionality for threats, malware, phishing, viruses

This commit is contained in:
Alicia Sykes
2023-08-19 22:00:15 +01:00
parent 83c8d311b3
commit 759bb603df
4 changed files with 23 additions and 6 deletions

View File

@@ -33,8 +33,22 @@ const convertToDate = (dateString: string): string => {
const MalwareCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => {
const urlHaus = props.data.urlHaus;
const phishTank = props.data.phishTank;
const cloudmersive = props.data.cloudmersive;
return (
<Card heading={props.title} actionButtons={props.actionButtons}>
{ cloudmersive && !cloudmersive.error && (
<Row lbl="Threat Type" val={cloudmersive.WebsiteThreatType} />
)}
{ phishTank && !phishTank.error && (
<Row lbl="Phishing Status" val={phishTank.url0 ? '❌ Phishing Identified' : '✅ No Phishing Identified!'} />
)}
{ phishTank.url0 && phishTank.url0.phish_detail_page && (
<Row lbl="" val="">
<span className="lbl">Phish Info</span>
<span className="val"><a href={phishTank.url0.phish_detail_page}>{phishTank.url0.phish_id}</a></span>
</Row>
)}
{ urlHaus.query_status === 'no_results' && <Row lbl="Status" val="✅ Nothing Found!" />}
{ urlHaus.query_status === 'ok' && (
<>

View File

@@ -218,7 +218,7 @@ const jobNames = [
'rank',
'archives',
'block-lists',
'malware',
'threats',
] as const;
export const initialJobs = jobNames.map((job: string) => {