Skip to content

Commit

Permalink
Add Threat Intelligence application implementation and registration
Browse files Browse the repository at this point in the history
  • Loading branch information
guidomodarelli committed Jan 22, 2025
1 parent 8bb9efd commit 1ba9e2b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { i18n } from '@osd/i18n';
import {
App,
AppMountParameters,
CoreSetup,
} from 'opensearch-dashboards/public';
import { PLUGIN_ID } from '../../../common/constants';
import { CATEGORY } from '../category';

export const THREAT_INTELLIGENCE_ID = 'threat_intelligence';
export const THREAT_INTELLIGENCE_TITLE = i18n.translate(
Expand All @@ -15,3 +21,13 @@ export const THREAT_INTELLIGENCE_DESCRIPTION = i18n.translate(
'Collect and analyze information about potential threats to inform security decisions.',
},
);

export const ThreatIntelligenceApp = (_core: CoreSetup): App => ({
id: THREAT_INTELLIGENCE_ID,
title: THREAT_INTELLIGENCE_TITLE,
category: CATEGORY,
mount:
async (_params: AppMountParameters) =>
// TODO: Implement the threat intelligence application
() => {},
});
13 changes: 2 additions & 11 deletions plugins/wazuh-analysis/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
THREAT_INTELLIGENCE_ID,
THREAT_INTELLIGENCE_TITLE,
THREAT_INTELLIGENCE_DESCRIPTION,
ThreatIntelligenceApp,
} from './applications/threat-intelligence/threat-intelligence';

interface AnalysisSetupDependencies {}
Expand Down Expand Up @@ -266,17 +267,7 @@ export class AnalysisPlugin
private registerApps(core: CoreSetup) {
const applications: App[] = [
EndpointSecurityApp(core),
{
id: THREAT_INTELLIGENCE_ID,
title: THREAT_INTELLIGENCE_TITLE,
category: CATEGORY,
mount: async (params: AppMountParameters) => {
// TODO: Implement the threat intelligence application
const { renderApp } = await import('./application');

return renderApp(params, {});
},
},
ThreatIntelligenceApp(core),
{
id: SECURITY_OPERATIONS_ID,
title: TRANSLATION_MESSAGES.SECURITY_OPERATIONS_TITLE,
Expand Down

0 comments on commit 1ba9e2b

Please sign in to comment.