New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@circlesac/aws-sts-login

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@circlesac/aws-sts-login

AWS Console auto-login CLI — captures STS temporary credentials via browser automation

latest
Source
npmnpm
Version
26.4.5
Version published
Maintainers
2
Created
Source

aws-sts-login

AWS Console auto-login CLI — logs in via browser automation, obtains STS temporary credentials, and writes them to ~/.aws/credentials.

Install

brew install circlesac/tap/aws-sts-login

Or with npm:

npm install -g @circlesac/aws-sts-login

Or direct download:

curl -fsSL https://github.com/circlesac/aws-sts-login/releases/latest/download/install.sh | sh

Setup

Create ~/.aws/sts-login with your login profiles:

[my-aws-dev]
account_id = 123456789012
username = myuser
password = mypassword
mfa_secret = BASE32SECRET
region = us-east-1

See sts-login.example for a full example.

Set restrictive permissions:

chmod 600 ~/.aws/sts-login

Usage

aws-sts-login my-aws-dev

List available profiles:

aws-sts-login

How it works

  • Opens a browser and logs into the AWS Console (username/password/MFA)
  • Captures console session credentials via CDP
  • Creates a temporary IAM Access Key using the console session
  • Calls sts get-session-token with the Access Key + MFA to obtain proper STS credentials (12h TTL)
  • Deletes the Access Key immediately
  • Writes the STS credentials to ~/.aws/credentials and creates a ~/.aws/config profile if needed

On subsequent runs, cached credentials are reused until they expire.

credential_process

Can also be used as credential_process in ~/.aws/config:

[profile my-aws-dev]
credential_process = env CREDENTIAL_PROCESS=true aws-sts-login my-aws-dev

Note: This will open a browser window when credentials expire.

FAQs

Package last updated on 11 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts