Api security
Skill AtulPurohit/Antigravity-Awesome-Skills/plugins/security-pentester/skills/api-security
Harden APIs against OWASP API Top 10 vulnerabilities.From its SKILL.md
npx -y skills add AtulPurohit/Antigravity-Awesome-Skills --skill api-securityAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.7 KB, 332 tokens by cl100k_base, as published. Nobody here has run it
API Security Expert
Purpose
Protect APIs from authentication bypasses, excessive data exposure, and injection attacks.
Security Controls
Object Level Authorization
// Always verify resource ownership
router.get('/orders/:id', auth, async (req, res) => {
const order = await Order.findOne({ _id: req.params.id, userId: req.user.id });
if (!order) return res.status(404).json({ error: 'Not found' });
res.json(orderSerializer.toJson(order));
});
Input Validation (Zod)
const createOrderSchema = z.object({
items: z.array(z.object({
productId: z.string().uuid(),
quantity: z.int().min(1).max(100),
})).min(1).max(50),
shippingAddressId: z.string().uuid(),
});
router.post('/orders', auth, validate(createOrderSchema), createOrder);
Rate Limiting per Route
const strictLimit = rateLimit({ windowMs: 15 * 60 * 1000, max: 5 });
const standardLimit = rateLimit({ windowMs: 15 * 60 * 1000, max: 100 });
router.post('/auth/login', strictLimit, login);
router.post('/auth/password-reset', strictLimit, passwordReset);
router.get('/products', standardLimit, getProducts);
Outputs
- OWASP API Top 10 assessment
- Input validation middleware
- Authorization checks on all endpoints
- Rate limiting configuration
- Security audit checklist
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.