jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
17 stars 10 forks source link

[DigitalOcean] Notice of SSH bruteforce activities #3541

Closed dduportal closed 1 year ago

dduportal commented 1 year ago

Service(s)

ci.jenkins.io, DigitalOcean

Summary

The 21 of April 2023, the Jenkins infrastructure tem received an email from DigitalOcean support about a report of SSH bruteforce attack reported from one of our IPs.

The report is public and visible here: https://digitalocean.abusehq.net/share/binuPbZxK6x1APoWH4Zdrqb9oiD0j9j_0AD4IqVIk4jKhX9FEBsv2pjxFtuj45Zo

The team immediatelly audited the infrastructure:

=> We were not able to confirm this abuse report was run from this machine.

We tried to apply a compensating measure by adding firewall rule to the Kubernetes nodes. Alas, the DigitalOcean managed Kuberentes is already managing its own firewall ruleset which allow ALL outbound traffic (defeating any custom restriction) as per https://docs.digitalocean.com/products/kubernetes/details/managed/#worker-node-firewalls

So we decided to disable the cluster on ci.jenkins.io until we hear back from Digital Ocean. Ref. https://github.com/jenkins-infra/jenkins-infra/pull/2780.

We answered back to DigitalOcean support to get more info and support from them.

Reproduction steps

No response

dduportal commented 1 year ago

A few metrics/traces/logs captured during the audit:

Capture d’écran 2023-04-21 à 17 51 42 Capture d’écran 2023-04-21 à 17 56 08 Capture d’écran 2023-04-21 à 18 08 26 Capture d’écran 2023-04-21 à 18 41 49 Capture d’écran 2023-04-21 à 19 17 09

dduportal commented 1 year ago

Closing as we received today an email confirming our analysis: Jenkins infrastructure was not used for an SSH bruteforce attack:

Hey there,

Thanks for the update. I'm seeing what happened here. It looks like the reporter shared two different times, causing a bit of confusion on our automation. I've actioned the appropriate account and I'll close this ticket out. Apologies for any trouble it's caused.

Swimmingly,

Security Operations DigitalOcean Security