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

[SIEM] Authentications table doesn't show 'Last Success/Failed Source' column if only 'source.ip' is present #56716

Closed
spong opened this issue Feb 4, 2020 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM Team:Threat Hunting Security Solution Threat Hunting Team

Comments

@spong
Copy link
Member

spong commented Feb 4, 2020

The Authentications Table on the Hosts Page will not show values for Last Success/Failed Source when only a single source field (source.ip) is present.

image

Looks like we're trying to verify there's a source object before checking for source.ip, so in instances where the document only has source.ip, it'll come back as a single field instead of object, and this check will fail.

Response resulting in the bug:

{
  "took": 6,
  "timed_out": false,
  "_shards": {
    "total": 10,
    "successful": 10,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "max_score": null,
    "hits": []
  },
  "aggregations": {
    "group_by_users": {
      "doc_count_error_upper_bound": 0,
      "sum_other_doc_count": 0,
      "buckets": [
        {
          "key": "dain",
          "doc_count": 5,
          "failures": {
            "doc_count": 1,
            "lastFailure": {
              "hits": {
                "total": {
                  "value": 1,
                  "relation": "eq"
                },
                "max_score": null,
                "hits": [
                  {
                    "_index": "ecs-custom",
                    "_type": "_doc",
                    "_id": "",
                    "_score": null,
                    "_source": {
                      "syslog.severity": "6",
                      "@timestamp": "2020-02-03T21:31:37.851Z",
                      "message": "",
                      "syslog.facility": "166",
                      "event.category": "authentication",
                      "host.ip": "",
                      "type": "asa",
                      "host.name": "",
                      "event.code": "605004",
                      "user.name": "dain",
                      "host.os.version": "9.12(3)",
                      "timestamp": "Feb 03 2020 16:31:37",
                      "interface.name": "management",
                      "network.application": "ssh",
                      "event.type": "authentication_failure",
                      "source.port": "",
                      "host.os.name": "ASA",
                      "source.ip": "127.0.0.1",
                      "@version": "1"
                    },
                    "sort": [
                      1580765497851
                    ]
                  }
                ]
              }
            }
          },
          "successes": {
            "doc_count": 4,
            "lastSuccess": {
              "hits": {
                "total": {
                  "value": 4,
                  "relation": "eq"
                },
                "max_score": null,
                "hits": [
                  {
                    "_index": "ecs-custom",
                    "_type": "_doc",
                    "_id": "",
                    "_score": null,
                    "_source": {
                      "syslog.severity": "6",
                      "@timestamp": "2020-02-03T20:31:30.719Z",
                      "message": "",
                      "syslog.facility": "166",
                      "event.category": "authentication",
                      "host.ip": "127.0.0.1",
                      "type": "asa",
                      "host.name": "5508x-1",
                      "event.code": "605005",
                      "user.name": "dain",
                      "host.os.version": "9.12(3)",
                      "timestamp": "Feb 03 2020 15:31:30",
                      "interface.name": "management",
                      "network.application": "ssh",
                      "event.type": "authentication_success",
                      "source.port": "60381",
                      "host.os.name": "ASA",
                      "source.ip": "127.0.0.1",
                      "@version": "1"
                    },
                    "sort": [
                      1580761890719
                    ]
                  }
                ]
              }
            }
          }
        }
      ]
    },
    "user_count": {
      "value": 1
    }
  }
}

@spong spong added bug Fixes for quality problems that affect the customer experience Team:SIEM labels Feb 4, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@patrykkopycinski patrykkopycinski self-assigned this Feb 4, 2020
@patrykkopycinski patrykkopycinski removed their assignment Sep 30, 2020
@MadameSheema MadameSheema added the Team:Threat Hunting Security Solution Threat Hunting Team label Oct 1, 2020
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM Team:Threat Hunting Security Solution Threat Hunting Team
Projects
None yet
Development

No branches or pull requests

5 participants