foundry-sample-detection-translation

Detection translation and context sample Foundry app

https://github.com/crowdstrike/foundry-sample-detection-translation

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.4%) to scientific vocabulary

Keywords

falcon-foundry
Last synced: 10 months ago · JSON representation ·

Repository

Detection translation and context sample Foundry app

Basic Info
  • Host: GitHub
  • Owner: CrowdStrike
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Homepage:
  • Size: 3.31 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Topics
falcon-foundry
Created 12 months ago · Last pushed 10 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Security Support

README.md

CrowdStrike Falcon

Detection translation and context sample Foundry app

The Detection translation and context sample Foundry app is a community-driven, open source project which serves as an example of an app which can be built using CrowdStrike's Foundry ecosystem. foundry-sample-detection-translation is an open source project, not a CrowdStrike product. As such, it carries no formal support, expressed or implied.

This app is one of several App Templates included in Foundry that you can use to jumpstart your development. It comes complete with a set of preconfigured capabilities aligned to its business purpose. Deploy this app from the Templates page with a single click in the Foundry UI, or create an app from this template using the CLI.

[!IMPORTANT]
To view documentation and deploy this sample app, you need access to the Falcon console.

Description

Enhance your security operations with this powerful extension that leverages Charlotte AI to provide translation of detection alerts. This application allows security teams to:

  • Access AI-powered translations of detection data for improved clarity
  • Add customized context to any detection for better team communication
  • Streamline investigation workflows with enriched detection information
  • Maintain comprehensive documentation of security events

Prerequisites

  • The Foundry CLI (instructions below).
  • Nodejs and PNPM if you want to change the UI.

Install the Foundry CLI

You can install the Foundry CLI with Scoop on Windows or Homebrew on Linux/macOS.

Windows:

Install Scoop. Then, add the Foundry CLI bucket and install the Foundry CLI.

shell scoop bucket add foundry https://github.com/crowdstrike/scoop-foundry-cli.git scoop install foundry

Or, you can download the latest Windows zip file, expand it, and add the install directory to your PATH environment variable.

Linux and macOS:

Install Homebrew. Then, add the Foundry CLI repository to the list of formulae that Homebrew uses and install the CLI:

shell brew tap crowdstrike/foundry-cli brew install crowdstrike/foundry-cli/foundry

Run foundry version to verify it's installed correctly.

Getting Started

Clone this sample to your local system, or download as a zip file and import it into Foundry.

shell git clone https://github.com/CrowdStrike/foundry-sample-detection-translation cd foundry-sample-detection-translation

Log in to Foundry:

shell foundry login

Select the following permissions:

  • [ ] Create and run RTR scripts
  • [x] Create, execute and test workflow templates
  • [x] Create, run and view API integrations
  • [ ] Create, edit, delete, and list queries

Deploy the app:

shell foundry apps deploy

[!TIP] If you get an error that the name already exists, change the name to something unique to your CID in manifest.yml.

Once the deployment has finished, you can release the app:

shell foundry apps release

Next, go to Foundry > App catalog, find your app, and install it. You will be requested to add the API credentials for the app, you can create them in Support and resources > API clients and keys.

Once it's installed you can find the Translation and custom context extension in the right sidebar of detections:

  • Next-Gen SIEM > Monitor and investigate > Incidents
  • Endpoint security > Monitor > Endpoint detections
  • Next-Gen SIEM > Monitor and investigate > Detections

About this sample app

This sample app showcases a Foundry application that enhances detection alerts with AI-powered translations and custom contextual information. The app demonstrates how various Foundry artifacts can work together to provide extended functionality for security operations teams.

Architecture and Components

The application consists of several integrated components working together:

  1. UI Extensions:
  • A sidebar extension ("Translation and context") that integrates into detection views within the Falcon platform
  • Provides an interface for viewing and managing translations and additional context for security detections
  1. UI Pages:
  • "Detection context explorer" - A centralized management interface for viewing, editing, and creating detection context entries
  1. Foundry Collections:
  • detection_context collection - Stores all translated content and contextual information linked to detections
  • Uses a schema with properties for compositeId (unique identifier), content (HTML content), title, and type
  1. Workflows:
  • translate-with-charlotte-ai - Orchestrates the translation process using Charlotte AI
  • Takes detection content, requested language, and metadata as inputs
  • Uses Charlotte AI to perform translations while preserving HTML formatting
  • Stores translated content back to the detection_context collection
  1. API Integrations:
    • Crowdstrike alerts and message-center - Provides access to detection data, comments, and case information

How It Works

  1. Detection Translation:
  • When viewing a detection, the extension loads in the sidebar
  • The app checks if a translation already exists for the detection in the user's language
  • If no translation exists, it offers a button to generate one
  • When requested, the app:
    • Retrieves the detection details and comments
    • Formats the content as structured HTML
    • Triggers the translate-with-charlotte-ai workflow
    • Displays the translated content once complete
  1. Context Management:
  • Users can add custom contextual information to any detection
  • The system stores this context alongside translations in the detection_context collection
  • Each context entry is linked to a specific detection via its compositeId
  1. Detection Context Explorer:
    • Provides a centralized interface for managing all detection context entries
    • Users can create, edit, view, and delete contextual information
    • All entries are saved to the detection_context collection for persistence

This sample demonstrates several powerful Foundry capabilities, including UI extensions that integrate directly into existing Falcon interfaces, workflow integration with Charlotte AI for natural language processing, collections for data persistence, and seamless API integrations with the Falcon platform. Together, these components create a cohesive application that enhances security operations by providing translated detection information and enabling teams to maintain comprehensive documentation of security events.

Foundry resources



WE STOP BREACHES

Owner

  • Name: CrowdStrike
  • Login: CrowdStrike
  • Kind: organization
  • Email: github@crowdstrike.com
  • Location: United States of America

Citation (CITATION.cff)

cff-version: 1.2.0
title: "CrowdStrike Foundry Sample App - Detection translation and context"
message: >-
  If you use this software, and wish to cite the origins,
  please use metadata from this file.
type: software
authors:
  - given-names:
    family-names: CrowdStrike
    email: oss-questions@crowdstrike.com
repository-code: "https://github.com/CrowdStrike/foundry-sample-detection-translation"
url: "https://www.crowdstrike.com"
repository-artifact: "https://pkg.go.dev/github.com/crowdstrike/foundry-sample-detection-translation"
abstract: >-
  The CrowdStrike Foundry Sample App - Detection translation and context
  is a community-driven, open source project designed
  to illustrate creating apps with CrowdStrike Foundry.
keywords:
  - crowdstrike
  - oauth2
  - crowdstrike-foundry
  - python
  - windows
  - linux
  - mac
license: MIT

GitHub Events

Total
  • Delete event: 15
  • Issue comment event: 6
  • Push event: 16
  • Pull request event: 41
  • Pull request review event: 17
  • Create event: 20
Last Year
  • Delete event: 15
  • Issue comment event: 6
  • Push event: 16
  • Pull request event: 41
  • Pull request review event: 17
  • Create event: 20

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 23
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.35
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 22
Past Year
  • Issues: 0
  • Pull requests: 23
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.35
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 22
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (22)
  • mraible (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (22) javascript (22)

Dependencies

.github/workflows/main.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/setup-node v4 composite
  • pnpm/action-setup v4 composite
package.json npm
ui/extensions/translation-and-context/package.json npm
  • @babel/core ^7.22.5 development
  • @babel/preset-env ^7.22.5 development
  • @testing-library/dom ^10.4.0 development
  • babel-jest ^30.0.5 development
  • jest ^30.0.5 development
  • jest-environment-jsdom ^30.0.5 development
  • jest-mock ^30.0.5 development
  • dompurify ^3.2.6
  • esbuild ^0.25.5
ui/extensions/translation-and-context/pnpm-lock.yaml npm
  • 213 dependencies
ui/pages/detection-context-explorer/package.json npm
  • @babel/core 7.28.0 development
  • @babel/preset-env ^7.28.0 development
  • @babel/preset-react 7.27.1 development
  • @rollup/plugin-babel 6.0.4 development
  • @rollup/plugin-commonjs 28.0.6 development
  • @rollup/plugin-json 6.1.0 development
  • @rollup/plugin-node-resolve 16.0.1 development
  • @rollup/plugin-replace 6.0.2 development
  • @testing-library/jest-dom ^6.6.3 development
  • @testing-library/react ^15.0.7 development
  • @testing-library/user-event ^14.6.1 development
  • @web/rollup-plugin-html 2.3.0 development
  • babel-jest ^30.0.4 development
  • jest ^30.0.5 development
  • jest-environment-jsdom ^30.0.5 development
  • postcss ^8.5.6 development
  • rollup 4.45.1 development
  • rollup-plugin-postcss ^4.0.2 development
  • @crowdstrike/foundry-js ^0.18.0
  • @crowdstrike/tailwind-toucan-base ^5.0.0
  • dompurify ^3.2.6
  • react 19.1.0
  • react-dom 19.1.0
ui/pages/detection-context-explorer/pnpm-lock.yaml npm
  • 248 dependencies