Understanding Awskeys: What They Are and Why They Matter
In Amazon Web Services (AWS), an access key ID paired with a secret access key is commonly referred to as an awskey. These credentials enable programmatic access to AWS services via the CLI, SDKs, or third‑party tools. Because they grant the same level of permissions as the associated IAM identity, protecting awskeys is a core component of any cloud security strategy.
How to Create Awskeys Safely
Creating an awskey is straightforward, but doing it securely requires a few best‑practice steps. Below is a concise workflow that mirrors the method demonstrated in popular tutorial videos, such as those by Sriwantha Attanayake.
- Log in to the AWS Management Console. Use a role with IAMFullAccess or a custom policy that permits iam:CreateAccessKey.
- Navigate to the IAM dashboard. Choose “Users,” select the target user, and click the “Security credentials” tab.
- Generate a new access key. Click “Create access key,” then copy the access key ID and secret access key immediately. AWS does not display the secret again.
- Store the credentials securely. Use a password manager, encrypted file, or AWS Secrets Manager. Never embed them in source code or public repositories.
- Enable multi‑factor authentication (MFA). Pair the IAM user with an MFA device to add an additional verification layer.
- Rotate keys regularly. Schedule key rotation (e.g., every 90 days) and delete old keys after confirming the new ones work.
When you run a shell script with set -x, the command trace will display the exact steps taken, helping you verify that the key creation process follows the intended sequence without exposing the secret.
Common Threats Targeting Awskeys
Attackers are increasingly creative in how they obtain and misuse awskeys. Recent security research highlights several trends:
- Malicious Python packages. Packages such as pygrata, pygrata‑utils, hkg‑sol‑utils, and loglib‑modules have been found stealing awskeys from developers’ environments and exfiltrating them to command‑and‑control servers.
- AI‑driven credential harvesting. In a recent episode of a security podcast, experts described how compromised AI agents can be instructed to locate and upload awskeys from shared notebooks or CI/CD pipelines.
- Supply‑chain abuse. Threat actors embed malicious code in open‑source libraries that, when installed, automatically call aws sts get-caller-identity to verify the presence of valid awskeys and then push them to external storage.
- GovCloud exposure. The Cybersecurity and Infrastructure Security Agency (CISA) recently disclosed