30.2 IAM Done Right
In short: IAM (Identity and Access Management) is the front door of your account.
Quick answer: the short, self-contained version of this lesson is the guide Cloud IAM Least Privilege.
IAM (Identity and Access Management) is the front door of your account. Get this right and most attacks fail.
1. Lock the root user. The root user (your sign-up email) can do everything, including closing the account.
- Enable MFA on root (IAM console, Security credentials, Assign MFA device).
- Delete any root access keys. Root should never have keys.
- Use root only for billing and account-level tasks; do daily work as an IAM user or through IAM Identity Center.
2. MFA for every human. A stolen password alone should never be enough.
3. Least privilege. Give only the permissions a job needs. Compare:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:PutObject"],
"Resource": "arn:aws:s3:::reels-media-pune/*"
}]
}
This policy lets the app read and write objects in one bucket. Attaching AdministratorAccess to the app instead would let one bug in your PHP code hand an attacker your whole account.
4. Roles, not access keys. An EC2 instance should get permissions from an IAM role (you did this in Chapter 16), which gives short-lived credentials that rotate automatically. Long-lived access keys in code or ~/.aws/credentials on a server are the most common way cloud accounts get stolen.
5. Review regularly. IAM, Credential report (download CSV) shows who has MFA, old passwords and unused keys. IAM Access Analyzer flags resources shared outside your account.
aws sts get-caller-identity # who am I right now?
aws iam generate-credential-report
aws iam get-credential-report --query Content --output text | base64 -d > cred-report.csv
aws iam list-access-keys --user-name dev-sanket # any old keys?
Ravindra Bagale's Tip
The biggest mistake: writing an access key into your code and pushing it to GitHub. Bots scan public repos within minutes and use the key to start crypto-mining servers – and the bill comes to you. A key should never be in code. Use a role on EC2, aws configure on your laptop, and .gitignore. If it does get pushed, deactivate the key immediately (30.6).
Ravindra Bagale's Tip – मराठी
सर्वात मोठी चूक: access key code मध्ये लिहून GitHub वर push करणे. Bots काही मिनिटांत public repo scan करतात आणि key वापरून crypto-mining servers चालू करतात – bill तुम्हाला येते. Key कधीही code मध्ये नको. EC2 वर role, laptop वर aws configure आणि .gitignore. Push झाली तर लगेच key deactivate करा (30.6).
Ravindra Bagale's Tip – हिंदी
सबसे बड़ी गलती: access key code में लिखकर GitHub पर push करना. Bots कुछ ही मिनटों में public repo scan करते हैं और key इस्तेमाल करके crypto-mining servers चालू कर देते हैं – bill आपको आता है. Key कभी भी code में नहीं. EC2 पर role, laptop पर aws configure और .gitignore. Push हो गई तो तुरंत key deactivate करो (30.6).
Lab
In your own account: (1) enable MFA on root and on your IAM user, (2) download the credential report and find any user without MFA, (3) create a policy that allows only s3:GetObject on one test bucket, attach it to a test user, and prove with the CLI that s3:PutObject is denied (AccessDenied). Delete the test user afterwards.
Real incident: Ginkgo Bioworks – data taken from old, forgotten cloud environments (Oct 2026)
1. What happened
On 8 October 2026, US biotech company Ginkgo Bioworks said it had recently discovered that an unauthorised third party accessed data from cloud environments mainly linked to its former biosecurity business. The company believes the data came primarily from legacy cloud environments – older cloud setups left over from a business it no longer runs the same way. Ginkgo said it cut off the intruder's access, rotated credentials, took some legacy systems offline as a precaution, and found no evidence the intruder still had access or reached other environments. Its core systems, including financial systems, were not interrupted. The company was clear: this was not a ransomware or encryption event. It informed the FBI and notified customers whose data was involved. Ginkgo has not said how many people were affected, what kind of data was taken, or when the access happened.
2. How the hack happened (public reporting only – high-level)
- A company keeps old cloud environments running from a past business line – fewer people watch them, and their access rules may be years old.
- An outsider gets access to those legacy environments (Ginkgo has not published the exact entry path).
- The outsider reads and takes data stored there – no encryption, no ransom note, so nothing "breaks" that would alert staff quickly.
- The company discovers the access, cuts it off and rotates credentials – which tells us access credentials were a key part of the clean-up.
- Legacy systems are taken offline and checks confirm the main environments were not reached.
3. How to stop it / defend (this lesson: IAM Done Right)
- Every cloud account needs an owner. When a business unit closes or is sold, someone must either shut down its cloud accounts or hand them over formally – never just leave them running.
- Rotate and remove old credentials. Use the IAM credential report from this lesson to find access keys and users nobody has used for 90+ days, and disable them.
- Least privilege on legacy data too. Old buckets and databases should be locked to a small read-only group, or moved to archive with strict access.
- Same logging everywhere. Turn on CloudTrail (Chapter 30.5) in old accounts as well as new ones, so access to forgotten data still raises an alert.
- Delete data you no longer need. Data that does not exist cannot be stolen.
4. How to take care so it won't happen again (checklist)
- [ ] Make a list of every cloud account and project you have, with an owner name next to each.
- [ ] Mark which ones belong to old projects, closed teams or past clients.
- [ ] For each old one: delete it, or archive the data and lock access down.
- [ ] Download the credential report every month and disable unused keys and users.
- [ ] Check that CloudTrail and alerts are on in every account, not just the main one.
- [ ] India students: the same applies to old client projects at IT companies – when a project ends, remove access and clean up its cloud accounts. Report major incidents to CERT-In within the required time (see Ch.34).
Source: Ginkgo Bioworks press release "Ginkgo Bioworks Cybersecurity and Incident Response", 8 October 2026, as reported by TSN Media, "Cyber Breaches, 9 October 2026", 9 October 2026.
Check if you're safe: Website Security Checklist
Real incident: ConnectWise Cloud Backup (SkyKick) – one stolen vendor app secret used to sign in to hundreds of Microsoft 365 tenants (Oct 2026)
1. What happened
ConnectWise Cloud Backup (earlier called SkyKick) is a backup service that managed service providers (MSPs) use to back up their clients' Microsoft 365 mail, OneDrive, SharePoint and Teams data. To do that job, every client gives the backup app broad read and write permission in its Microsoft 365 tenant.
- On 15 October 2026, someone signed in to customer tenants as the backup app itself, using the app's own secret credential, and received Microsoft Graph access tokens.
- Huntress confirmed unauthorised sign-ins in 173 tenants it protects. Its later update said almost 1,000 Microsoft tenants saw sign-in activity from the attacker's server, and more than 300 of those sign-ins succeeded.
- Microsoft Threat Intelligence called it an active supply-chain attack. It said the attacker likely abused permissions customers had already given the app, including the very powerful
Directory.ReadWrite.All. - ConnectWise published an advisory on 16 October, disabled seven of its app identities on 17 October and suspended the backup service. It said it has no evidence the stored backup archives were accessed.
- The reports do not yet say how the attacker got the vendor's credential, and how much data was read is still unclear. Educational framing only.
2. How the hack happened (public reporting only – high-level)
- When a company connects the backup app, Microsoft Entra ID creates an app identity (service principal) for it inside that company's tenant, with the permissions the admin approved once.
- The app proves who it is with a secret or certificate kept in the vendor's own environment. The same credential works in every tenant where the app is installed, so one stolen credential opens many companies at once.
- A script signed in as the app to tenant after tenant, a few seconds apart. This is an app-only sign-in: no user and no phone, so MFA never comes into the picture.
- The tokens carried the app's existing rights – read and write mail, files, Teams chats and directory data. Microsoft also saw Graph reconnaissance and attempts to add extra credentials as a backdoor.
- In about 50 tenants, ConnectWise Cloud Management apps gave themselves admin roles, mostly Exchange Administrator. In one tenant, a Cloud Management app made itself Global Administrator and added new secrets to two other trusted apps – an MSP management tool and Huntress's own security app. A secret added like this keeps working even after the vendor app is switched off. Huntress has not yet confirmed whether this earlier activity was the same operator.
- It was hard to see: these sign-ins show only on the separate Service principal sign-ins tab, not the default user sign-ins tab, and directory reads through Microsoft Graph leave no audit trail.
3. How to stop it / defend (this lesson: IAM done right)
- Least privilege applies to apps and vendors too. Before you approve a third-party app, read the permissions it asks for. Ask the vendor why it needs directory write rights or admin roles.
- Remove apps you no longer use. ConnectWise asked partners to check even tenants with dormant SkyKick connections. An old, forgotten app with big permissions is an open door.
- MFA does not protect app identities. Protect them with the controls built for them: Conditional Access for workload identities (allow sign-in only from the vendor's expected locations), app management policies that block or shorten client secrets, and very few people holding the Application Administrator roles.
- The same idea in AWS: give a vendor an IAM role with an External ID and a narrow policy, never long-lived access keys. Watch CloudTrail for a vendor role that creates access keys or attaches policies to itself, and use IAM Access Analyzer to list everything shared outside your account.
- Alert on these events: an app adding itself to a directory role, an app changing other apps, or new credentials appearing on an app (SOC and SIEM, Chapter 31).
- During an incident: disable the vendor app (don't delete it), save the sign-in and audit logs early because they are kept only for a limited time, and remember that tokens already issued stay valid until they expire. Revoking user sessions does not stop app access.
4. How to take care so it won't happen again (checklist)
- [ ] If you use ConnectWise Cloud Backup or Cloud Management (or older SkyKick apps), follow the ConnectWise advisory: keep the listed apps disabled until ConnectWise gives restore steps, and check service principal sign-ins from 13 October 2026 onwards.
- [ ] Review the secrets and certificates on all your apps and remove any you did not create.
- [ ] Remove any directory role you never meant to give an app.
- [ ] Keep a list of every third-party app in your tenant or AWS account, its owner, its permissions and when it was last used.
- [ ] Turn on alerts for app role changes and new app credentials.
- [ ] Plan for a backup vendor outage: know how you would restore if the backup service is suddenly suspended.
Source: Huntress, Jonathan Semon, "ConnectWise (SkyKick) Vendor Credentials Abused in M365 Attacks", 16 October 2026 (updated 17 October 2026); BleepingComputer, Ionut Ilascu, "Hackers breach Microsoft 365 tenants via ConnectWise supply-chain attack", 17 October 2026; The Hacker News, Ravie Lakshmanan, "Hackers Use Compromised ConnectWise Credential to Sign In to 173 Microsoft 365 Tenants", 17 October 2026 (quoting Microsoft Threat Intelligence and Todyl); ConnectWise Trust Center advisory "Cloud Backup (formerly known as SkyKick) Service Interruption", first published 16 October 2026, updated 18 October 2026.
1. काय झालं
ConnectWise Cloud Backup (आधीचं नाव SkyKick) ही एक backup service आहे. Managed service providers (MSPs) ती त्यांच्या clients च्या Microsoft 365 मधल्या mail, OneDrive, SharePoint आणि Teams data चा backup घ्यायला वापरतात. हे काम करण्यासाठी प्रत्येक client आपल्या Microsoft 365 tenant मध्ये backup app ला मोठी read आणि write permission देतो.
- 15 ऑक्टोबर 2026 ला कुणीतरी app च्याच secret credential ने, स्वतः backup app बनून, customers च्या tenants मध्ये sign in केलं आणि Microsoft Graph चे access tokens मिळवले.
- Huntress ने ते सांभाळत असलेल्या 173 tenants मध्ये बिना परवानगीचे sign-ins झाल्याचं नक्की केलं. नंतरच्या update मध्ये सांगितलं की जवळपास 1,000 Microsoft tenants मध्ये attacker च्या server वरून sign-in चे प्रयत्न दिसले, आणि त्यातले 300 पेक्षा जास्त यशस्वी झाले.
- Microsoft Threat Intelligence ने याला चालू असलेला supply-chain attack म्हटलं. त्यांच्या मते attacker ने customers नी app ला आधीच दिलेल्या permissions चा गैरवापर केला, त्यात खूप ताकदवान
Directory.ReadWrite.Allपण आहे. - ConnectWise ने 16 ऑक्टोबर ला advisory काढली, 17 ऑक्टोबर ला आपल्या सात app identities बंद केल्या आणि backup service थांबवली. त्यांच्या मते साठवलेले backup archives उघडले गेल्याचा पुरावा नाही.
- Attacker ला vendor चं credential कसं मिळालं, हे reports मध्ये अजून सांगितलेलं नाही, आणि किती data वाचला गेला हे पण अजून स्पष्ट नाही. हे फक्त शिकण्यासाठी आहे.
2. Hack कसा झाला (फक्त public reporting – high-level)
- कंपनी backup app जोडते तेव्हा Microsoft Entra ID त्या कंपनीच्या tenant मध्ये त्या app साठी एक app identity (service principal) बनवतं, admin ने एकदाच मंजूर केलेल्या permissions सकट.
- App आपण कोण आहोत हे vendor च्या स्वतःच्या environment मध्ये ठेवलेल्या secret किंवा certificate ने सिद्ध करतं. तेच credential app बसवलेल्या प्रत्येक tenant मध्ये चालतं, म्हणजे एक चोरलेलं credential एकदम अनेक कंपन्यांची दारं उघडतं.
- एका script ने app बनून एकामागून एक tenants मध्ये, काही सेकंदांच्या अंतराने, sign in केलं. हे app-only sign-in आहे: कोणी माणूस नाही, phone नाही, म्हणून MFA चा प्रश्नच येत नाही.
- Tokens मध्ये app चे आधीचे सगळे हक्क होते – mail, files, Teams chats आणि directory data वाचणं आणि बदलणं. Microsoft ला Graph reconnaissance आणि backdoor म्हणून जास्तीचे credentials जोडायचे प्रयत्न पण दिसले.
- जवळपास 50 tenants मध्ये ConnectWise च्या Cloud Management apps नी स्वतःलाच admin roles दिले, बहुतेक Exchange Administrator. एका tenant मध्ये तर एका Cloud Management app ने स्वतःला Global Administrator बनवलं आणि दुसऱ्या दोन विश्वासातल्या apps वर नवीन secrets जोडले – एक MSP management tool आणि Huntress चं स्वतःचं security app. असं जोडलेलं secret vendor चं app बंद केलं तरी चालू राहतं. ही आधीची हालचाल त्याच माणसाची होती का, हे Huntress ने अजून नक्की केलेलं नाही.
- हे दिसायला अवघड होतं: हे sign-ins नेहमीच्या user sign-ins tab वर नाही, तर वेगळ्या Service principal sign-ins tab वरच दिसतात, आणि Microsoft Graph मधून directory वाचलं तर त्याचा audit trail राहत नाही.
3. कसं थांबवायचं / बचाव (हा lesson: IAM done right)
- Least privilege हा apps आणि vendors ना पण लागू आहे. Third-party app ला मंजुरी देण्याआधी ते कोणत्या permissions मागतंय ते नीट वाचा. Directory write rights किंवा admin roles का हवेत, हे vendor ला विचारा.
- न वापरलेली apps काढून टाका. ConnectWise ने partners ना बंद पडलेल्या (dormant) SkyKick connections असलेले tenants पण check करायला सांगितलं. मोठ्या permissions असलेलं जुनं, विसरलेलं app म्हणजे उघडं दार.
- MFA app identities ना वाचवत नाही. त्यांच्यासाठी बनवलेले controls वापरा: workload identities साठी Conditional Access (vendor च्या ठरलेल्या जागांवरूनच sign-in), client secrets बंद किंवा कमी मुदतीचे करणाऱ्या app management policies, आणि Application Administrator roles फार कमी लोकांकडे.
- AWS मध्ये पण हीच कल्पना: vendor ला External ID आणि छोटी policy असलेला IAM role द्या, जास्त दिवस चालणाऱ्या access keys कधीच नाहीत. Vendor role ने access keys बनवल्या किंवा स्वतःला policies लावल्या तर CloudTrail मध्ये लक्ष ठेवा, आणि account बाहेर share झालेलं सगळं IAM Access Analyzer ने बघा.
- या घटनांवर alert लावा: app ने स्वतःला directory role दिला, app ने दुसरी apps बदलली, किंवा app वर नवीन credentials आले (SOC आणि SIEM, Chapter 31).
- Incident चालू असताना: vendor app disable करा (delete नाही), sign-in आणि audit logs लवकर जपून ठेवा कारण ते ठराविक काळच राहतात, आणि लक्षात ठेवा की आधी दिलेले tokens संपेपर्यंत चालत राहतात. User sessions revoke केले तरी app access थांबत नाही.
4. परत असं होऊ नये म्हणून काय काळजी घ्यायची (checklist)
- [ ] तुम्ही ConnectWise Cloud Backup किंवा Cloud Management (किंवा जुनी SkyKick apps) वापरत असाल, तर ConnectWise ची advisory पाळा: ConnectWise restore च्या steps देईपर्यंत दिलेली apps बंदच ठेवा, आणि 13 ऑक्टोबर 2026 पासूनचे service principal sign-ins check करा.
- [ ] तुमच्या सगळ्या apps वरचे secrets आणि certificates बघा आणि तुम्ही न बनवलेले काढून टाका.
- [ ] तुम्ही मुद्दाम न दिलेला कोणताही directory role app कडून काढून घ्या.
- [ ] तुमच्या tenant किंवा AWS account मधल्या प्रत्येक third-party app ची list ठेवा – त्याचा owner, permissions आणि शेवटचा वापर कधी झाला.
- [ ] App roles बदलले किंवा app वर नवीन credentials आले की alert येईल असं करा.
- [ ] Backup vendor अचानक बंद पडला तर काय, याचा plan ठेवा: backup service थांबली तर restore कसं करणार ते आधीच ठरवा.
स्रोत: Huntress, Jonathan Semon, "ConnectWise (SkyKick) Vendor Credentials Abused in M365 Attacks", 16 ऑक्टोबर 2026 (17 ऑक्टोबर 2026 ला update); BleepingComputer, Ionut Ilascu, 17 ऑक्टोबर 2026; The Hacker News, Ravie Lakshmanan, 17 ऑक्टोबर 2026 (Microsoft Threat Intelligence आणि Todyl चा हवाला); ConnectWise Trust Center advisory, पहिल्यांदा 16 ऑक्टोबर 2026, update 18 ऑक्टोबर 2026.
1. क्या हुआ
ConnectWise Cloud Backup (पहले का नाम SkyKick) एक backup service है. Managed service providers (MSPs) इसे अपने clients के Microsoft 365 के mail, OneDrive, SharePoint और Teams data का backup लेने के लिए इस्तेमाल करते हैं. यह काम करने के लिए हर client अपने Microsoft 365 tenant में backup app को बड़ी read और write permission देता है.
- 15 अक्टूबर 2026 को किसी ने app के अपने secret credential से, ख़ुद backup app बनकर, customers के tenants में sign in किया और Microsoft Graph के access tokens ले लिए.
- Huntress ने अपने संभाले हुए 173 tenants में बिना इजाज़त के sign-ins की पुष्टि की. बाद के update में उसने बताया कि लगभग 1,000 Microsoft tenants में attacker के server से sign-in की कोशिशें दिखीं, और उनमें से 300 से ज़्यादा सफल रहीं.
- Microsoft Threat Intelligence ने इसे चल रहा supply-chain attack कहा. उसके मुताबिक़ attacker ने उन permissions का ग़लत इस्तेमाल किया जो customers ने app को पहले से दे रखी थीं, जिनमें बहुत ताक़तवर
Directory.ReadWrite.Allभी है. - ConnectWise ने 16 अक्टूबर को advisory जारी की, 17 अक्टूबर को अपनी सात app identities बंद कीं और backup service रोक दी. उसके मुताबिक़ रखे हुए backup archives खोले जाने का कोई सबूत नहीं है.
- Attacker को vendor का credential कैसे मिला, यह reports में अभी नहीं बताया गया, और कितना data पढ़ा गया यह भी अभी साफ़ नहीं है. यह सिर्फ़ सीखने के लिए है.
2. Hack कैसे हुआ (सिर्फ़ public reporting – high-level)
- जब कोई कंपनी backup app जोड़ती है, तो Microsoft Entra ID उस कंपनी के tenant में उस app के लिए एक app identity (service principal) बनाता है, admin की एक बार मंज़ूर की गई permissions के साथ.
- App अपनी पहचान vendor के अपने environment में रखे secret या certificate से साबित करता है. वही credential हर उस tenant में चलता है जहाँ app लगा है, यानी एक चोरी हुआ credential एक साथ कई कंपनियों के दरवाज़े खोल देता है.
- एक script ने app बनकर एक के बाद एक tenants में, कुछ सेकंड के फ़ासले पर, sign in किया. यह app-only sign-in है: कोई इंसान नहीं, कोई phone नहीं, इसलिए MFA का सवाल ही नहीं उठता.
- Tokens में app के पहले के सारे हक़ थे – mail, files, Teams chats और directory data पढ़ना और बदलना. Microsoft को Graph reconnaissance और backdoor के तौर पर अतिरिक्त credentials जोड़ने की कोशिशें भी दिखीं.
- लगभग 50 tenants में ConnectWise के Cloud Management apps ने ख़ुद को ही admin roles दे दिए, ज़्यादातर Exchange Administrator. एक tenant में तो एक Cloud Management app ने ख़ुद को Global Administrator बनाया और दो दूसरे भरोसेमंद apps पर नए secrets जोड़ दिए – एक MSP management tool और Huntress का अपना security app. ऐसे जोड़ा गया secret vendor का app बंद करने के बाद भी चलता रहता है. यह पहले वाली हरकत उसी operator की थी या नहीं, Huntress ने अभी इसकी पुष्टि नहीं की है.
- इसे देखना मुश्किल था: ये sign-ins सामान्य user sign-ins tab पर नहीं, बल्कि अलग Service principal sign-ins tab पर ही दिखते हैं, और Microsoft Graph से directory पढ़ने पर कोई audit trail नहीं बचता.
3. कैसे रोकें / बचाव (यह lesson: IAM done right)
- Least privilege apps और vendors पर भी लागू होता है. किसी third-party app को मंज़ूरी देने से पहले देखो कि वह कौन सी permissions माँग रहा है. Vendor से पूछो कि उसे directory write rights या admin roles क्यों चाहिए.
- जो apps इस्तेमाल नहीं होते, उन्हें हटा दो. ConnectWise ने partners से बंद पड़े (dormant) SkyKick connections वाले tenants भी check करने को कहा. बड़ी permissions वाला पुराना, भूला हुआ app मतलब खुला दरवाज़ा.
- MFA app identities को नहीं बचाता. उनके लिए बने controls इस्तेमाल करो: workload identities के लिए Conditional Access (सिर्फ़ vendor की तय जगहों से sign-in), client secrets को बंद या कम मियाद वाला करने वाली app management policies, और Application Administrator roles बहुत कम लोगों के पास.
- AWS में भी यही सोच: vendor को External ID और छोटी policy वाला IAM role दो, लंबे समय तक चलने वाली access keys कभी नहीं. Vendor role access keys बनाए या ख़ुद पर policies लगाए तो CloudTrail में नज़र रखो, और account के बाहर share हुई हर चीज़ IAM Access Analyzer से देखो.
- इन घटनाओं पर alert लगाओ: app ने ख़ुद को directory role दिया, app ने दूसरे apps बदले, या app पर नए credentials आए (SOC और SIEM, Chapter 31).
- Incident के दौरान: vendor app को disable करो (delete नहीं), sign-in और audit logs जल्दी संभालकर रखो क्योंकि वे सीमित समय तक ही रहते हैं, और याद रखो कि पहले से जारी tokens ख़त्म होने तक चलते रहते हैं. User sessions revoke करने से app access नहीं रुकता.
4. दोबारा ऐसा न हो, इसके लिए क्या ध्यान रखें (checklist)
- [ ] अगर आप ConnectWise Cloud Backup या Cloud Management (या पुराने SkyKick apps) इस्तेमाल करते हो, तो ConnectWise की advisory मानो: जब तक ConnectWise restore के steps न दे, बताए गए apps बंद ही रखो, और 13 अक्टूबर 2026 से आगे के service principal sign-ins check करो.
- [ ] अपने सारे apps पर लगे secrets और certificates देखो और जो आपने नहीं बनाए उन्हें हटा दो.
- [ ] जो directory role आपने जानबूझकर नहीं दिया, उसे app से वापस ले लो.
- [ ] अपने tenant या AWS account के हर third-party app की list रखो – उसका owner, permissions और आख़िरी बार कब इस्तेमाल हुआ.
- [ ] App roles बदलें या app पर नए credentials आएँ तो alert आए, ऐसा इंतज़ाम करो.
- [ ] Backup vendor अचानक बंद हो जाए तो क्या, इसका plan रखो: backup service रुक जाए तो restore कैसे करोगे, यह पहले से तय करो.
स्रोत: Huntress, Jonathan Semon, "ConnectWise (SkyKick) Vendor Credentials Abused in M365 Attacks", 16 अक्टूबर 2026 (17 अक्टूबर 2026 को update); BleepingComputer, Ionut Ilascu, 17 अक्टूबर 2026; The Hacker News, Ravie Lakshmanan, 17 अक्टूबर 2026 (Microsoft Threat Intelligence और Todyl के हवाले से); ConnectWise Trust Center advisory, पहली बार 16 अक्टूबर 2026, update 18 अक्टूबर 2026.
Real incident: Barracuda – a cloud access key given to a vendor was never retired, and an attacker used it to roam about 10 cloud accounts for 44 hours (Nov 2026)
1. What happened
In this lesson you learnt IAM done right: give the smallest access, prefer short-lived roles over long-lived keys, and remove access the moment it is not needed. This real case shows what happens when one old key is forgotten.
- Barracuda Networks is a network and email security company.
- Barracuda gave a cloud access key to a third-party vendor (a company working in AI) for an earlier project. When the project ended, the key was not retired. Barracuda said: "That is on us."
- The key sat in a configuration file in the vendor's GitHub repository. It was exposed when the vendor's development environment was compromised. BleepingComputer reports Barracuda believes the key was stolen in October.
- On 1 and 2 November 2026, the attacker used it to reach about 10 Barracuda cloud accounts over 44 hours. Barracuda discovered the activity on 4 November.
- The attacker searched for crypto wallet secrets (for example environment variables named WALLET, MNEMONIC, SEED and PRIV, and seed phrases), so Barracuda believes the motive was money.
- One reached system stores Barracuda XDR customer integration credentials. Barracuda says it found no evidence they were viewed or stolen, but it asked notified customers to revoke and recreate them and review activity from 1 November 2026.
- Barracuda says the attack patterns match ARTEX, an open-source AI pentesting framework, and called it a "machine-speed intrusion".
2. How the hack happened (public reporting only – high-level)
- A long-lived cloud key was shared with a vendor and left active after the work ended.
- The vendor kept the key in a config file in its GitHub repository. The vendor's development environment was compromised and the key leaked.
- The attacker signed in to Barracuda's cloud with that key.
- Inside, it found more credentials in one system and used them to move into data analytics, source-code repositories and Kubernetes clusters.
- It tried to stay in by running a container that mounted the host's file system. A separate attempt to create a new cloud administrator identity was blocked.
- Barracuda found it, cut off access, rotated credentials and secrets, and retired two automation servers whose credentials were exposed.
3. How to stop it / defend (this lesson: IAM done right)
Why: a key does not know the project is over. If nobody turns it off, it keeps working for whoever holds it, even years later.
What you can do:
- Keep a list of every key you give to a vendor, with an owner and an end date. When the project ends, disable and delete the key the same day.
- Prefer roles over keys. Let the vendor assume an IAM role with short-lived credentials, instead of giving a permanent access key.
- Give the smallest access. One project should reach only the buckets or services it needs, never many accounts.
- Find unused keys every month. Check "last used" dates and disable any key that is old or quiet (Examples 1 to 3).
- Block risky actions with guardrails, like creating new admin users or running containers that mount the host. Barracuda's blocked admin attempt shows guardrails work.
- Alert on keys used from new places with CloudTrail and GuardDuty, and keep secrets in a secrets manager, not in config files or plain environment variables.
Example 1: list the keys of a vendor user.
- Open a terminal where the AWS CLI is set up with an admin profile you trust.
- Run
aws iam list-access-keys --user-name vendor-project-user - Output (example):
AccessKeyId: AKIA...EXAMPLE Status: Active CreateDate: 2026-03-02 - What it means: this user still has an active key. Ask: is the project still running?
Example 2: see when the key was last used.
- Copy the AccessKeyId from Example 1.
- Run
aws iam get-access-key-last-used --access-key-id AKIA...EXAMPLE - Output (example):
LastUsedDate: 2026-11-01 ServiceName: s3 Region: ap-south-1 - What it means: if the project ended long ago but the key was used recently, treat it as a possible leak and start your incident steps.
Example 3: turn the old key off.
- Tell the vendor first if the project is still live, so nothing breaks by surprise.
- Run
aws iam update-access-key --user-name vendor-project-user --access-key-id AKIA...EXAMPLE --status Inactive - Output:
(no output means success; the key now shows Status: Inactive) - What it means: the key stops working at once. After a few quiet days, delete it for good.
4. How to take care so it won't happen again (checklist)
- [ ] Every vendor key has an owner and an end date written down.
- [ ] Keys are disabled and deleted on the day a project ends.
- [ ] Vendors use IAM roles with short-lived credentials where possible.
- [ ] Each key has only the access one project needs.
- [ ] We review key "last used" dates every month.
- [ ] Guardrails block new admin users and host-mounting containers.
- [ ] Secrets live in a secrets manager, not in Git repos or config files.
Source: Barracuda Trust Center, "Barracuda XDR Integration Credentials" advisory, published 10 November 2026 and updated 13 November 2026; BleepingComputer, "Barracuda links cloud breach to ARTEX AI-powered cyberattack" (Bill Toulas), 16 November 2026.
1. काय झालं
या lesson मध्ये आपण IAM done right शिकलो: कमीत कमी access द्या, long-lived keys पेक्षा short-lived roles वापरा, आणि गरज संपली की access लगेच काढा. ही खरी घटना दाखवते की एक जुनी key विसरली तर काय होतं.
- Barracuda Networks ही network आणि email security कंपनी आहे.
- Barracuda ने एका जुन्या project साठी एका third-party vendor ला (AI मध्ये काम करणारी कंपनी) cloud access key दिली होती. Project संपला, पण key बंद केली नाही. Barracuda म्हणाली: "That is on us."
- ती key vendor च्या GitHub repository मधल्या config file मध्ये होती. Vendor चं development environment hack झालं तेव्हा key बाहेर गेली. BleepingComputer नुसार Barracuda ला वाटतं की key October मध्ये चोरली गेली.
- 1 आणि 2 नोव्हेंबर 2026 ला attacker ने त्या key ने 44 तासांत सुमारे 10 Barracuda cloud accounts मध्ये प्रवेश केला. Barracuda ला हे 4 नोव्हेंबर ला कळलं.
- Attacker crypto wallet secrets शोधत होता (उदा. WALLET, MNEMONIC, SEED, PRIV नावाचे environment variables आणि seed phrases). म्हणून Barracuda ला वाटतं की हेतू पैसा होता.
- एका system मध्ये Barracuda XDR customers चे integration credentials असतात. ते पाहिले किंवा चोरले गेले याचा पुरावा मिळाला नाही, असं Barracuda म्हणते. तरी notify केलेल्या customers ना ते revoke करून नवीन बनवायला आणि 1 नोव्हेंबर 2026 पासूनची activity बघायला सांगितलं.
- Attack ची पद्धत ARTEX (open-source AI pentesting framework) शी जुळते, असं Barracuda म्हणते. त्यांनी याला "machine-speed intrusion" म्हटलं.
2. Hack कसा झाला (फक्त public reporting – high-level)
- एक long-lived cloud key vendor ला दिली आणि काम संपल्यावरही चालू ठेवली.
- Vendor ने key आपल्या GitHub repository मधल्या config file मध्ये ठेवली. Vendor चं development environment hack झालं आणि key leak झाली.
- Attacker त्या key ने Barracuda च्या cloud मध्ये sign in झाला.
- आत एका system मध्ये त्याला अजून credentials मिळाले. त्यांच्या मदतीने तो data analytics, source-code repositories आणि Kubernetes clusters मध्ये गेला.
- आत टिकून राहण्यासाठी त्याने host ची file system mount करणारा container चालवायचा प्रयत्न केला. नवीन cloud administrator identity बनवण्याचा वेगळा प्रयत्न block झाला.
- Barracuda ने हे पकडलं, access बंद केला, credentials आणि secrets rotate केले, आणि ज्यांचे credentials उघड झाले ते दोन automation servers बंद केले.
3. हे कसं थांबवायचं / defend (हा lesson: IAM done right)
का: key ला कळत नाही की project संपला. कोणी बंद केली नाही तर ती ज्याच्याकडे असेल त्याच्यासाठी काम करत राहते, वर्षांनंतरही.
काय करायचं:
- Vendor ला दिलेल्या प्रत्येक key ची list ठेवा, owner आणि end date सोबत. Project संपला की त्याच दिवशी key disable आणि delete करा.
- Keys ऐवजी roles वापरा. Vendor ला permanent access key देण्याऐवजी short-lived credentials असलेला IAM role assume करू द्या.
- कमीत कमी access द्या. एका project ला फक्त लागणारे buckets किंवा services मिळावेत, अनेक accounts नाही.
- दर महिन्याला न वापरलेल्या keys शोधा. "last used" date बघा आणि जुनी किंवा शांत key disable करा (Example 1 ते 3).
- Guardrails ने धोकादायक actions block करा, जसं नवीन admin user बनवणं किंवा host mount करणारे containers. Barracuda मध्ये admin चा प्रयत्न block झाला, म्हणजे guardrails काम करतात.
- नवीन ठिकाणाहून key वापरली गेली तर alert मिळावा, यासाठी CloudTrail आणि GuardDuty वापरा. Secrets config files किंवा साध्या environment variables मध्ये नाही, secrets manager मध्ये ठेवा.
Example 1: vendor user च्या keys ची list बघा.
- ज्या terminal मध्ये विश्वासाचा admin profile असलेलं AWS CLI set up आहे, तो उघडा.
- हे चालवा:
aws iam list-access-keys --user-name vendor-project-user - Output (उदाहरण):
AccessKeyId: AKIA...EXAMPLE Status: Active CreateDate: 2026-03-02 - अर्थ: या user ची key अजून active आहे. विचारा: project अजून चालू आहे का?
Example 2: key शेवटची कधी वापरली ते बघा.
- Example 1 मधला AccessKeyId copy करा.
- हे चालवा:
aws iam get-access-key-last-used --access-key-id AKIA...EXAMPLE - Output (उदाहरण):
LastUsedDate: 2026-11-01 ServiceName: s3 Region: ap-south-1 - अर्थ: project खूप आधी संपला पण key नुकतीच वापरली गेली असेल, तर leak समजा आणि incident steps सुरू करा.
Example 3: जुनी key बंद करा.
- Project अजून live असेल तर आधी vendor ला सांगा, म्हणजे अचानक काही बंद पडणार नाही.
- हे चालवा:
aws iam update-access-key --user-name vendor-project-user --access-key-id AKIA...EXAMPLE --status Inactive - Output:
(no output means success; the key now shows Status: Inactive) - अर्थ: key लगेच काम करणं बंद करते. काही दिवस काही problem आला नाही तर ती कायमची delete करा.
4. पुन्हा असं होऊ नये म्हणून काय काळजी घ्यायची (checklist)
- [ ] प्रत्येक vendor key चा owner आणि end date लिहून ठेवला आहे.
- [ ] Project संपतो त्याच दिवशी keys disable आणि delete होतात.
- [ ] शक्य तिथे vendors short-lived credentials असलेले IAM roles वापरतात.
- [ ] प्रत्येक key ला फक्त एका project पुरताच access आहे.
- [ ] आम्ही दर महिन्याला keys ची "last used" date बघतो.
- [ ] Guardrails नवीन admin users आणि host mount करणारे containers block करतात.
- [ ] Secrets Git repos किंवा config files मध्ये नाही, secrets manager मध्ये आहेत.
Source: Barracuda Trust Center, "Barracuda XDR Integration Credentials" advisory, published 10 नोव्हेंबर 2026 and updated 13 नोव्हेंबर 2026; BleepingComputer, "Barracuda links cloud breach to ARTEX AI-powered cyberattack" (Bill Toulas), 16 नोव्हेंबर 2026.
1. क्या हुआ
इस lesson में आपने IAM done right सीखा: सबसे कम access दें, long-lived keys की जगह short-lived roles इस्तेमाल करें, और ज़रूरत खत्म होते ही access हटा दें. यह असली घटना दिखाती है कि एक पुरानी key भूल जाने पर क्या होता है.
- Barracuda Networks एक network और email security कंपनी है.
- Barracuda ने एक पुराने project के लिए एक third-party vendor (AI में काम करने वाली कंपनी) को cloud access key दी थी. Project खत्म हुआ, पर key बंद नहीं की गई. Barracuda ने कहा: "That is on us."
- वह key vendor की GitHub repository की एक config file में रखी थी. Vendor का development environment hack हुआ तब key बाहर आ गई. BleepingComputer के अनुसार Barracuda मानती है कि key October में चोरी हुई.
- 1 और 2 नवंबर 2026 को attacker ने उस key से 44 घंटों में लगभग 10 Barracuda cloud accounts तक पहुँच बनाई. Barracuda को यह 4 नवंबर को पता चला.
- Attacker crypto wallet secrets ढूँढ रहा था (जैसे WALLET, MNEMONIC, SEED, PRIV नाम वाले environment variables और seed phrases). इसलिए Barracuda मानती है कि मकसद पैसा था.
- एक system में Barracuda XDR customers के integration credentials रहते हैं. Barracuda कहती है कि उन्हें देखा या चुराया गया, इसका कोई सबूत नहीं मिला. फिर भी notify किए गए customers को उन्हें revoke करके नए बनाने और 1 नवंबर 2026 से की activity देखने को कहा.
- Barracuda कहती है कि attack का तरीका ARTEX (open-source AI pentesting framework) से मिलता है. उन्होंने इसे "machine-speed intrusion" कहा.
2. Hack कैसे हुआ (सिर्फ़ public reporting – high-level)
- एक long-lived cloud key vendor को दी गई और काम खत्म होने के बाद भी चालू रही.
- Vendor ने key अपनी GitHub repository की config file में रखी. Vendor का development environment hack हुआ और key leak हो गई.
- Attacker उस key से Barracuda के cloud में sign in हुआ.
- अंदर एक system में उसे और credentials मिले. उनकी मदद से वह data analytics, source-code repositories और Kubernetes clusters तक गया.
- अंदर टिके रहने के लिए उसने host का file system mount करने वाला container चलाने की कोशिश की. नई cloud administrator identity बनाने की अलग कोशिश block हो गई.
- Barracuda ने इसे पकड़ा, access बंद किया, credentials और secrets rotate किए, और जिन दो automation servers के credentials खुले थे उन्हें बंद कर दिया.
3. इसे कैसे रोकें / defend (यह lesson: IAM done right)
क्यों: key को पता नहीं होता कि project खत्म हो गया. अगर कोई उसे बंद न करे, तो वह जिसके पास है उसके लिए काम करती रहती है, सालों बाद भी.
क्या करें:
- Vendor को दी गई हर key की list रखें, owner और end date के साथ. Project खत्म होते ही उसी दिन key disable और delete करें.
- Keys की जगह roles इस्तेमाल करें. Vendor को permanent access key देने के बजाय short-lived credentials वाला IAM role assume करने दें.
- सबसे कम access दें. एक project को सिर्फ़ ज़रूरी buckets या services मिलें, कई accounts नहीं.
- हर महीने बिना इस्तेमाल वाली keys ढूँढें. "last used" date देखें और पुरानी या शांत key disable करें (Example 1 से 3).
- Guardrails से खतरनाक actions block करें, जैसे नया admin user बनाना या host mount करने वाले containers. Barracuda में admin की कोशिश block हुई, यानी guardrails काम करते हैं.
- नई जगह से key इस्तेमाल हो तो alert मिले, इसके लिए CloudTrail और GuardDuty इस्तेमाल करें. Secrets को config files या सादे environment variables में नहीं, secrets manager में रखें.
Example 1: vendor user की keys की list देखें.
- वह terminal खोलें जिसमें भरोसेमंद admin profile वाला AWS CLI set up है.
- यह चलाएँ:
aws iam list-access-keys --user-name vendor-project-user - Output (उदाहरण):
AccessKeyId: AKIA...EXAMPLE Status: Active CreateDate: 2026-03-02 - मतलब: इस user की key अभी भी active है. पूछें: क्या project अभी चल रहा है?
Example 2: key आखिरी बार कब इस्तेमाल हुई, देखें.
- Example 1 से AccessKeyId copy करें.
- यह चलाएँ:
aws iam get-access-key-last-used --access-key-id AKIA...EXAMPLE - Output (उदाहरण):
LastUsedDate: 2026-11-01 ServiceName: s3 Region: ap-south-1 - मतलब: project बहुत पहले खत्म हुआ पर key हाल में इस्तेमाल हुई, तो इसे leak मानें और incident steps शुरू करें.
Example 3: पुरानी key बंद करें.
- अगर project अभी live है तो पहले vendor को बताएँ, ताकि अचानक कुछ बंद न हो.
- यह चलाएँ:
aws iam update-access-key --user-name vendor-project-user --access-key-id AKIA...EXAMPLE --status Inactive - Output:
(no output means success; the key now shows Status: Inactive) - मतलब: key तुरंत काम करना बंद कर देती है. कुछ दिन कोई problem न आए तो उसे हमेशा के लिए delete करें.
4. दोबारा ऐसा न हो, इसके लिए क्या ध्यान रखें (checklist)
- [ ] हर vendor key का owner और end date लिखा हुआ है.
- [ ] Project खत्म होने के दिन ही keys disable और delete होती हैं.
- [ ] जहाँ हो सके vendors short-lived credentials वाले IAM roles इस्तेमाल करते हैं.
- [ ] हर key के पास सिर्फ़ एक project जितना access है.
- [ ] हम हर महीने keys की "last used" date देखते हैं.
- [ ] Guardrails नए admin users और host mount करने वाले containers को block करते हैं.
- [ ] Secrets Git repos या config files में नहीं, secrets manager में हैं.
Source: Barracuda Trust Center, "Barracuda XDR Integration Credentials" advisory, published 10 नवंबर 2026 and updated 13 नवंबर 2026; BleepingComputer, "Barracuda links cloud breach to ARTEX AI-powered cyberattack" (Bill Toulas), 16 नवंबर 2026.
Ravindra Bagale's Tip
When you give a key to anyone, write its end date on the same day. A key never retires itself. Barracuda's key was meant for one old project, but it still opened about 10 cloud accounts months later. Roles with short-lived credentials are safer than permanent keys.
Ravindra Bagale's Tip – मराठी
कोणालाही key देताना त्याच दिवशी तिची end date लिहून ठेवा. Key स्वतःहून कधी बंद होत नाही. Barracuda ची key एका जुन्या project साठी होती, तरी नंतर तिने सुमारे 10 cloud accounts उघडले. Permanent keys पेक्षा short-lived credentials असलेले roles जास्त safe आहेत.
Ravindra Bagale's Tip – हिंदी
किसी को भी key देते समय उसी दिन उसकी end date लिख लें. Key खुद कभी बंद नहीं होती. Barracuda की key एक पुराने project के लिए थी, फिर भी बाद में उसने लगभग 10 cloud accounts खोल दिए. Permanent keys से short-lived credentials वाले roles ज़्यादा safe हैं.
Check if you're safe: Password Strength Checker