Skip to content

[abnormal_security] Initial release of the Abnormal Security - #10653

Merged
efd6 merged 5 commits into
elastic:mainfrom
brijesh-elastic:package-abnormal_security
Aug 9, 2024
Merged

efd6 merged 5 commits into
elastic:mainfrom
brijesh-elastic:package-abnormal_security

Conversation

@brijesh-elastic

Copy link
Copy Markdown
Contributor

Proposed commit message

Create New integration package abnormal_security.

  • Added ai_security_mailbox, audit, case and threat data stream.
  • Added data collection logic for all the data stream.
  • Added the ingest pipeline for all the data stream.
  • Mapped fields according to the ECS schema and added Fields metadata in the appropriate yml files.
  • Added dashboards and visualizations.
  • Added test for pipeline for all the data stream.
  • Added system test cases for all the data stream.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

How to test this PR locally

  • Clone integrations repo.
  • Install elastic package locally.
  • Start elastic stack using elastic-package.
  • Move to integrations/packages/abnormal_security directory.
  • Run the following command to run tests.

elastic-package test

--- Test results for package: abnormal_security - START ---
╭───────────────────┬─────────────────────┬───────────┬─────────────────────────────────────────────────────────┬────────┬──────────────╮
│ PACKAGE           │ DATA STREAM         │ TEST TYPE │ TEST NAME                                               │ RESULT │ TIME ELAPSED │
├───────────────────┼─────────────────────┼───────────┼─────────────────────────────────────────────────────────┼────────┼──────────────┤
│ abnormal_security │ ai_security_mailbox │ pipeline  │ (ingest pipeline warnings test-ai-security-mailbox.log) │ PASS   │ 532.894348ms │
│ abnormal_security │ ai_security_mailbox │ pipeline  │ test-ai-security-mailbox.log                            │ PASS   │ 250.257522ms │
│ abnormal_security │ audit               │ pipeline  │ (ingest pipeline warnings test-audit.log)               │ PASS   │ 445.051287ms │
│ abnormal_security │ audit               │ pipeline  │ test-audit.log                                          │ PASS   │ 335.424619ms │
│ abnormal_security │ case                │ pipeline  │ (ingest pipeline warnings test-case.log)                │ PASS   │ 390.989185ms │
│ abnormal_security │ case                │ pipeline  │ test-case.log                                           │ PASS   │ 168.100646ms │
│ abnormal_security │ threat              │ pipeline  │ (ingest pipeline warnings test-threat.log)              │ PASS   │ 355.249192ms │
│ abnormal_security │ threat              │ pipeline  │ test-threat.log                                         │ PASS   │ 386.175903ms │
╰───────────────────┴─────────────────────┴───────────┴─────────────────────────────────────────────────────────┴────────┴──────────────╯
--- Test results for package: abnormal_security - END   ---
Done
--- Test results for package: abnormal_security - START ---
╭───────────────────┬─────────────────────┬───────────┬───────────┬────────┬───────────────╮
│ PACKAGE           │ DATA STREAM         │ TEST TYPE │ TEST NAME │ RESULT │  TIME ELAPSED │
├───────────────────┼─────────────────────┼───────────┼───────────┼────────┼───────────────┤
│ abnormal_security │ ai_security_mailbox │ system    │ default   │ PASS   │ 37.814874684s │
│ abnormal_security │ audit               │ system    │ default   │ PASS   │ 36.100990035s │
│ abnormal_security │ case                │ system    │ default   │ PASS   │ 37.140948377s │
│ abnormal_security │ threat              │ system    │ default   │ PASS   │ 35.386249528s │
╰───────────────────┴─────────────────────┴───────────┴───────────┴────────┴───────────────╯
--- Test results for package: abnormal_security - END   ---
Done
--- Test results for package: abnormal_security - START ---
╭───────────────────┬─────────────────────┬───────────┬──────────────────────────┬────────┬──────────────╮
│ PACKAGE           │ DATA STREAM         │ TEST TYPE │ TEST NAME                │ RESULT │ TIME ELAPSED │
├───────────────────┼─────────────────────┼───────────┼──────────────────────────┼────────┼──────────────┤
│ abnormal_security │ ai_security_mailbox │ static    │ Verify sample_event.json │ PASS   │  128.51044ms │
│ abnormal_security │ audit               │ static    │ Verify sample_event.json │ PASS   │ 139.387012ms │
│ abnormal_security │ case                │ static    │ Verify sample_event.json │ PASS   │ 128.938014ms │
│ abnormal_security │ threat              │ static    │ Verify sample_event.json │ PASS   │ 164.084638ms │
╰───────────────────┴─────────────────────┴───────────┴──────────────────────────┴────────┴──────────────╯
--- Test results for package: abnormal_security - END   ---
Done
--- Test results for package: abnormal_security - START ---
╭───────────────────┬─────────────────────┬───────────┬────────────────────────────────────────────────────────────────────────────┬────────┬──────────────╮
│ PACKAGE           │ DATA STREAM         │ TEST TYPE │ TEST NAME                                                                  │ RESULT │ TIME ELAPSED │
├───────────────────┼─────────────────────┼───────────┼────────────────────────────────────────────────────────────────────────────┼────────┼──────────────┤
│ abnormal_security │                     │ asset     │ dashboard abnormal_security-37ed5d19-c753-43a0-b0a2-f8e6437ddfe5 is loaded │ PASS   │       3.37µs │
│ abnormal_security │                     │ asset     │ dashboard abnormal_security-6a8e53ac-7759-4564-bcd6-03c6a9792eac is loaded │ PASS   │        459ns │
│ abnormal_security │                     │ asset     │ dashboard abnormal_security-a4364503-ada3-4fe6-a054-d152accf207c is loaded │ PASS   │        327ns │
│ abnormal_security │                     │ asset     │ dashboard abnormal_security-f6562262-e429-470d-af45-4c80afdcf664 is loaded │ PASS   │        254ns │
│ abnormal_security │                     │ asset     │ search abnormal_security-8416d710-f7d2-4e62-b6d2-fe3a0b656998 is loaded    │ PASS   │        268ns │
│ abnormal_security │                     │ asset     │ search abnormal_security-ce59df21-762c-4f05-911e-fd9f5ff67e4b is loaded    │ PASS   │        283ns │
│ abnormal_security │                     │ asset     │ search abnormal_security-d2482dd8-c5fa-4f7c-9d5c-8b3f34481a90 is loaded    │ PASS   │        292ns │
│ abnormal_security │                     │ asset     │ search abnormal_security-e34b2986-68c2-4de9-8601-7bdefab429bc is loaded    │ PASS   │        318ns │
│ abnormal_security │ ai_security_mailbox │ asset     │ index_template logs-abnormal_security.ai_security_mailbox is loaded        │ PASS   │        680ns │
│ abnormal_security │ ai_security_mailbox │ asset     │ ingest_pipeline logs-abnormal_security.ai_security_mailbox-0.1.0 is loaded │ PASS   │        263ns │
│ abnormal_security │ audit               │ asset     │ index_template logs-abnormal_security.audit is loaded                      │ PASS   │        369ns │
│ abnormal_security │ audit               │ asset     │ ingest_pipeline logs-abnormal_security.audit-0.1.0 is loaded               │ PASS   │        203ns │
│ abnormal_security │ case                │ asset     │ index_template logs-abnormal_security.case is loaded                       │ PASS   │        249ns │
│ abnormal_security │ case                │ asset     │ ingest_pipeline logs-abnormal_security.case-0.1.0 is loaded                │ PASS   │        178ns │
│ abnormal_security │ threat              │ asset     │ index_template logs-abnormal_security.threat is loaded                     │ PASS   │        244ns │
│ abnormal_security │ threat              │ asset     │ ingest_pipeline logs-abnormal_security.threat-0.1.0 is loaded              │ PASS   │        172ns │
╰───────────────────┴─────────────────────┴───────────┴────────────────────────────────────────────────────────────────────────────┴────────┴──────────────╯
--- Test results for package: abnormal_security - END   ---
Done

Related issues

Screenshots

Integration Page
Overview Page

@kcreddy kcreddy added New Integration Issue or pull request for creating a new integration package. Crest Contributions from Crest developement team. Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Jul 30, 2024
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@elasticmachine

Copy link
Copy Markdown

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@jamiehynds
jamiehynds requested a review from a team July 31, 2024 20:25
Comment thread packages/abnormal_security/_dev/deploy/docker/files/config.yml Outdated
Comment thread packages/abnormal_security/data_stream/ai_security_mailbox/fields/base-fields.yml Outdated
Comment thread packages/abnormal_security/data_stream/ai_security_mailbox/fields/beats.yml Outdated
Comment thread packages/abnormal_security/data_stream/case/fields/beats.yml Outdated
Comment on lines +841 to +845
"https://example.com",
"https://example.com",
"https://example.com",
"https://example.com",
"https://example.com"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing that these would not all be duplicates in real data. Is that correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it will be unique in real data.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be an array. https://www.elastic.co/guide/en/ecs/current/ecs-url.html#field-url-original.
Better not copy array urls into url.original

Comment thread packages/abnormal_security/data_stream/threat/agent/stream/cel.yml.hbs Outdated
Comment thread packages/abnormal_security/data_stream/threat/fields/base-fields.yml Outdated
Comment thread packages/abnormal_security/data_stream/threat/fields/beats.yml Outdated
Comment thread packages/abnormal_security/_dev/build/docs/README.md Outdated
Comment thread packages/abnormal_security/_dev/build/docs/README.md Outdated
Comment thread packages/abnormal_security/_dev/build/docs/README.md Outdated
Comment thread packages/abnormal_security/_dev/build/docs/README.md Outdated
Comment thread packages/abnormal_security/_dev/build/docs/README.md
Comment on lines +841 to +845
"https://example.com",
"https://example.com",
"https://example.com",
"https://example.com",
"https://example.com"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be an array. https://www.elastic.co/guide/en/ecs/current/ecs-url.html#field-url-original.
Better not copy array urls into url.original

"abnormal_security-audit"
],
"url": {
"extension": "1/messages/email_content/",

@kcreddy kcreddy Aug 2, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you apply similar change to this one: #9623 for all datastream's pipeline test config which use uri_parts?

The pipeline test config temporarily fixes issue with url.extension having flaky tests in versions 8.14+.

@brijesh-elastic
brijesh-elastic requested review from efd6 and kcreddy August 6, 2024 14:10
@brijesh-elastic
brijesh-elastic requested a review from kcreddy August 8, 2024 07:05

@kcreddy kcreddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼
Can be merged after @efd6 approval. Thanks!

@efd6 efd6 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is one outstanding issue.

Comment on lines +67 to +74
"code": string(resp.StatusCode),
"id": string(resp.Status),
"message": "GET:"+(
size(resp.Body) != 0 ?
string(resp.Body)
:
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not done.

@efd6 efd6 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@elastic-sonarqube

Copy link
Copy Markdown

@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

@efd6
efd6 merged commit d4f81cc into elastic:main Aug 9, 2024
@elasticmachine

Copy link
Copy Markdown

Package abnormal_security - 0.1.0 containing this change is available at https://epr.elastic.co/search?package=abnormal_security

harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
…#10653)

* Added ai_security_mailbox, audit, case and threat data stream.
* Added data collection logic for all the data stream.
* Added the ingest pipeline for all the data stream.
* Mapped fields according to the ECS schema and added Fields metadata in the
  appropriate yml files.
* Added dashboards and visualizations.
* Added test for pipeline for all the data stream.
* Added system test cases for all the data stream.
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
…#10653)

* Added ai_security_mailbox, audit, case and threat data stream.
* Added data collection logic for all the data stream.
* Added the ingest pipeline for all the data stream.
* Mapped fields according to the ECS schema and added Fields metadata in the
  appropriate yml files.
* Added dashboards and visualizations.
* Added test for pipeline for all the data stream.
* Added system test cases for all the data stream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Crest Contributions from Crest developement team. Integration:abnormal_security Abnormal AI New Integration Issue or pull request for creating a new integration package. Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Integration] Abnormal Security

5 participants