
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
Multi-factor authentication for API keys through IP allowlisting, TOTP-based MFA, and certificate-based authentication
Multi-Factor Authentication for API Keys - Stop treating API keys like passwords.
Qiuth transforms API keys from bearer tokens into proof-of-possession tokens, requiring multiple authentication factors to prevent unauthorized access—even if your API key is leaked.
API keys are single points of failure. If your API key is leaked (committed to GitHub, intercepted in transit, stolen from logs), an attacker has unlimited access to your API.
# Your .env file accidentally committed to GitHub
API_KEY=sk_live_abc123def456
# Attacker finds it and has full access
curl -H "Authorization: Bearer sk_live_abc123def456" https://api.yourapp.com/data
# ✅ Success - Attacker downloads all your data
This happens more often than you think:
.env files accidentally committed to public reposQiuth adds multi-factor authentication to your API keys, transforming them from bearer tokens (anyone with the key can use it) into proof-of-possession tokens (you need the key PLUS additional factors).
🌐 IP Allowlisting - First line of defense
🔢 TOTP MFA - Time-based one-time passwords
🔑 Certificate Authentication - Cryptographic proof
After Qiuth:
# API key leaked in GitHub
API_KEY=sk_live_abc123def456
# Attacker tries to use it
curl -H "X-API-Key: sk_live_abc123def456" https://api.yourapp.com/data
# ❌ 401 Unauthorized - IP not in allowlist
# Attacker would need ALL THREE:
# 1. API key (leaked)
# 2. TOTP secret (stored separately)
# 3. Private key (never leaves secure environment)
# = Virtually impossible to compromise
npm install qiuth
import { QiuthConfigBuilder, QiuthAuthenticator } from 'qiuth';
// Configure security layers
const config = new QiuthConfigBuilder()
.withApiKey('your-api-key')
.withIpAllowlist(['192.168.1.0/24'])
.withTotp('your-totp-secret')
.build();
// Authenticate requests
const authenticator = new QiuthAuthenticator();
const result = await authenticator.authenticate({
apiKey: 'user-provided-key',
clientIp: '192.168.1.100',
totpToken: '123456',
method: 'GET',
url: 'https://api.example.com/resource',
}, config);
if (result.success) {
console.log('✅ Authentication successful!');
} else {
console.error('❌ Authentication failed:', result.errors);
}
import express from 'express';
import { createQiuthMiddleware, QiuthConfigBuilder } from 'qiuth';
const app = express();
const qiuthAuth = createQiuthMiddleware({
config: new QiuthConfigBuilder()
.withApiKey('your-api-key')
.withIpAllowlist(['0.0.0.0/0'])
.withTotp('your-totp-secret')
.build(),
});
app.get('/api/protected', qiuthAuth, (req, res) => {
res.json({ message: 'Access granted!' });
});
See Qiuth in action in 5 minutes!
# Clone the repo
git clone https://github.com/clay-good/qiuth.git
cd qiuth
# Install dependencies
npm install
# Start the interactive demo
npm run demo
The demo server will start and display test credentials. Open a new terminal and try the test commands to see all three security layers in action!
What you'll experience:
Secure microservices communication with MFA:
const config = new QiuthConfigBuilder()
.withApiKey(process.env.API_KEY)
.withIpAllowlist(['10.0.0.0/8']) // Internal network
.withTotp(process.env.TOTP_SECRET)
.build();
Add MFA to your existing API key system:
app.use('/api', createQiuthMiddleware({ config }));
Meet PCI DSS, SOC 2, HIPAA security requirements:
const config = new QiuthConfigBuilder()
.withApiKey(apiKey)
.withIpAllowlist(allowedIps)
.withTotp(totpSecret)
.withCertificate(publicKey) // Maximum security
.build();
Secure automated deployments:
// GitHub Actions, Jenkins, etc.
const client = new QiuthClient({
apiKey: process.env.API_KEY,
totpSecret: process.env.TOTP_SECRET,
privateKey: process.env.PRIVATE_KEY,
});
Qiuth is designed with security as the top priority:
Qiuth is designed for production use with minimal overhead:
Bundle Size:
Stop treating API keys like passwords. Add multi-factor authentication today. 🔐
FAQs
Multi-factor authentication for API keys through IP allowlisting, TOTP-based MFA, and certificate-based authentication
We found that qiuth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.