Giter VIP home page Giter VIP logo

intake-formats's People

Contributors

adamowoc avatar ade-dstny avatar aheuze avatar darkheir avatar dependabot[bot] avatar gaelmuller avatar gbossert avatar gcl-sekoia avatar goudyj avatar lenaigkaliou avatar leoarurault avatar lvoloshyn-sekoia avatar maximehgn avatar men-hau avatar mjeusset avatar naegelnajim avatar otetard avatar penhouetp avatar pierrickv avatar r1chev avatar rombernier avatar sesamegit avatar soc-dstny avatar squioc avatar stephkll3c avatar thibault-mal avatar tonioryo avatar toufikizakarya avatar vg-svitla avatar ysindel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

intake-formats's Issues

Cloudflare Access Requests - parsing error: `set:set_cloudflare_fields:cloudflare - isn't defined in taxonomy`

Hi!

This event (anonymized from a real one) causes a parsing error in the Cloudflare Access Requests intake, with the message
set:set_cloudflare_fields:cloudflare - isn't defined in taxonomy.

{"Action":"sso","Allowed":true,"AppDomain":"foo-bar-baz.xyz","AppUUID":"f1c47079-d821-3e7a-8f67-625c1e4fb6a4","Connection":"onetimepin","Country":"fr","CreatedAt":"2023-04-27T14:40:10Z","Email":"[email protected]","IPAddress":"78.101.123.45","PurposeJustificationPrompt":"why?","PurposeJustificationResponse":"because!","RayID":"7bf00f0ea9e9f858","TemporaryAccessApprovers":["[email protected]"],"TemporaryAccessDuration":900,"UserUID":"03251629-69f1-5ba0-a154-463be885554b"}

Infoblox DDI: DNS query logs are not parsed for some alternate logging configuration

On intake 0d1009c7-8c78-476a-8c1c-2439ddb57462, the DNS query logs are not parsed correctly.

The problem seems to be that the syslog message starts with queries: client , e.g.:

queries: client @0x7f62b80115d0 192.168.0.2#55473 (docs.sekoia.io): query: docs.sekoia.io IN AAAA + (192.168.0.1)

whereas the parser expects the message to start with client :

pattern: "%{CLIENT}"
custom_patterns:
QUERY_FLAGS: "%{QUERY_FLAGS_RD:flags_rd}%{QUERY_FLAGS_EDNS:flags_edns}?%{QUERY_FLAGS_TCP:flags_tcp}?%{QUERY_FLAGS_DNSSEC:flags_dnssec}?%{QUERY_FLAGS_CD:flags_cd}?%{QUERY_FLAGS_DNS_SERVER_COOKIE}?%{QUERY_FLAGS_DNS_SERVER_COOKIE_WITHOUT_VALID_SERVER}?"
QUERY_FLAGS_RD: '[\+\-]'
QUERY_FLAGS_SIGNED: "S?"
QUERY_FLAGS_EDNS: 'E(\(%{INT}\))?'
QUERY_FLAGS_TCP: "T"
QUERY_FLAGS_DNSSEC: "D"
QUERY_FLAGS_CD: "C"
QUERY_FLAGS_DNS_SERVER_COOKIE: "V"
QUERY_FLAGS_DNS_SERVER_COOKIE_WITHOUT_VALID_SERVER: "K"
CLIENT: 'client ?(%{DATA}) %{IP:src}#%{INT:spt} (%{DATA}): query: %{IPORHOST:dns_question_name} %{WORD:dns_question_class} %{WORD:dns_question_type} %{QUERY_FLAGS} \(%{IP}\)'

According to the Infoblox docs, the name of the log category (here queries: ) can be prefixed or not to the syslog messages depending on the configuration.

Logging Category: Select one of the following logging categories:

  • Send all: [...] the syslog messages are not prefixed when you select this option.
  • Send selected categories: [...] The syslog messages are prefixed with a category name to which it belongs. [...]

The integration documentation doesn't currently specify either option.

I think that we should modify the parser to handle both cases.

Here's how the official Elastic integration seems to parse the logs:

^(%{NOTSPACE:infoblox_nios.log.dns.category}:)?\\s*client %{DATA} %{IP:client.ip}...

CrowdStrike IDP timestamp are parsed incorrectly

In CrowdStrike IDP events, some timestamp are not in the UNIX format but in the LDAP format.

They are currently not converted correctly and events are inserted several years in the past because of this.

For an example, look for events with crowdstrike.event_type: IdpDetectionSummaryEvent.

If useful, here's how the official Elastic parser handles the conversoin:
https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/elasticsearch/ingest_pipeline/default.yml#L38-L80

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.