LoFP LoFP / a developer signing in from a new laptop or phone. confirm with the user and that mfa succeeded.

Techniques

Sample rules

GitHub Sign-in from Unrecognized Device

Description

Identifies a GitHub sign-in from an unrecognized device. GitHub emits “user.sign_in_from_unrecognized_device”, “user.sign_in_from_unrecognized_device_and_location”, and “user.new_device_used” when an account authenticates from a device or location it has not seen before. For Enterprise Managed User (EMU) enterprises these user security-log actions stream into the enterprise audit log, where a sign-in from an unfamiliar device can indicate that stolen credentials or a hijacked session are being used from attacker infrastructure. Personal-account enterprises typically retain these events only in the per-user security log, which does not stream to Elastic, so this rule is targeted at EMU audit data.

Detection logic

from logs-github.audit-* metadata _id, _index, _version
| where
  event.module == "github" and data_stream.dataset == "github.audit"
    and event.action in (
      "user.sign_in_from_unrecognized_device",
      "user.sign_in_from_unrecognized_device_and_location",
      "user.new_device_used"
    )
| keep
    _id,
    _index,
    _version,
    @timestamp,
    event.action,
    user.name,
    github.org,
    github.repo,
    github.actor_ip,
    github.hashed_token,
    github.programmatic_access_type,
    github.user_agent,
    github.device,
    github.actor_location.country_name