Bitbucket Audit: SSH User Login Failures

Alerts on Bitbucket audit records showing SSH-based user login failures in authentication events.

FreeReviewedSigma · Medium · v5
Product
bitbucket
Service
audit
Author
Muhammad Faisal (@faisalusuf) (SigmaHQ), DRL 1.1
Published
2024-02-25
Updated
2026-07-31
title: "Bitbucket Audit: SSH User Login Failures"
id: b05497a7-8696-4f38-8b61-0ccb867bffd4
status: test
description: Identifies Bitbucket audit events where an SSH user login attempt fails. Failed authentication is a common precursor to credential guessing or unauthorized access attempts against SSH-enabled Git repositories. The rule relies on Bitbucket audit telemetry that records authentication failures with the SSH-specific action values.
references:
  - https://confluence.atlassian.com/bitbucketserver/view-and-configure-the-audit-log-776640417.html
  - https://confluence.atlassian.com/bitbucketserver/enable-ssh-access-to-git-repositories-776640358.html
  - https://github.com/SigmaHQ/sigma/blob/master/rules/application/bitbucket/audit/bitbucket_audit_user_login_failure_via_ssh_detected.yml
author: Muhammad Faisal (@faisalusuf), Huntrule Team
date: 2024-02-25
tags:
  - attack.lateral-movement
  - attack.credential-access
  - attack.t1021.004
  - attack.t1110
logsource:
  product: bitbucket
  service: audit
  definition: 'Requirements: "Advance" log level is required to receive these audit events.'
detection:
  selection:
    auditType.category: Authentication
    auditType.action: User login failed(SSH)
  condition: selection
falsepositives:
  - Legitimate user wrong password attempts.
level: medium
license: DRL-1.1
related:
  - id: d3f90469-fb05-42ce-b67d-0fded91bbef3
    type: derived