Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitdefender: Support jsonRPC format messages in Bitdefender #10020

Closed
kcreddy opened this issue May 30, 2024 · 3 comments · Fixed by #10381
Closed

bitdefender: Support jsonRPC format messages in Bitdefender #10020

kcreddy opened this issue May 30, 2024 · 3 comments · Fixed by #10381
Assignees
Labels
enhancement New feature or request Integration:bitdefender BitDefender Team:Security-Service Integrations Security Service Integrations Team [elastic/security-service-integrations]

Comments

@kcreddy
Copy link
Contributor

kcreddy commented May 30, 2024

The http_endpoint input limitation described in #10019 doesn't allow ingesting jsonRPC formatted events from BitDefender.

After 8.14 release, the input will be able to handle limited CEL program: #10019 (review) and thus should be able to ingest jsonRPC events as well.

Add support to ingest jsonRPC messages which is recommended format by BitDefender.

Sample event:

{
    "jsonrpc": "2.0",
    "method": "addEvents",
    "params": {
        "events": [
            {
                "companyId": "59a14b271da197c6108b4567",
                "computer_name": "FC-EXCHANGE-01",
                "computer_fqdn": "fc-exchange-01.fc.dom",
                "computer_ip": "192.168.0.1",
                "computer_id": "59b7d9bfa849af3a1465b7e4",
                "product_installed": "BEST",
                "aph_type": "phishing",
                "url": "http://example.com/account/support/",
                "status": "aph_blocked",
                "last_blocked": "2017-09-14T08:49:43.000Z",
                "count": 1,
                "module": "aph"
            }
        ]
    },
    "id": 1505378984190
}

Reference: https://www.bitdefender.com/business/support/en/77209-135325-push-event-json-rpc-messages.html

@kcreddy kcreddy added Integration:bitdefender BitDefender enhancement New feature or request Team:Security-Service Integrations Security Service Integrations Team [elastic/security-service-integrations] labels May 30, 2024
@elasticmachine
Copy link

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

@efd6
Copy link
Contributor

efd6 commented May 30, 2024

Relevant filebeat change is here. Docs added here.

@kcreddy
Copy link
Contributor Author

kcreddy commented Jul 5, 2024

While working on the PR #10381, certain limitations of CEL program in HTTP Endpoint input is found. Currently, if the numeric values are deeply nested (like in BitDefender's jsonRPC case), they are not converted to native values and resulting in 400 bad request to the client.

There are quite a few fields containing numeric data in BitDefender push notifications in jsonRPC format (~40 fields).
These jsonRPC events can be only be handled after this issue is fixed in elastic/beats#40115.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:bitdefender BitDefender Team:Security-Service Integrations Security Service Integrations Team [elastic/security-service-integrations]
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants