# Principle of Least Privilege

> What is the Principle of Least Privilege, and how would you apply it to users, services and infrastructure in a real web application?

Canonical: https://www.internhack.in/learn/interview/web-security/security-least-privilege
Last updated: 2026-11-28

Difficulty: Beginner

## Question

What is the Principle of Least Privilege, and how would you apply it to users, services and infrastructure in a real web application?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Least Privilege, Access Control, IAM Policies, RBAC, Blast Radius, Just-in-Time Access

Previous: [Directory Traversal](https://www.internhack.in/learn/interview/web-security/security-directory-traversal) · Next: [Zero Trust](https://www.internhack.in/learn/interview/web-security/security-zero-trust-architecture) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [CSP: Content Security Policy](https://www.internhack.in/learn/interview/web-security/security-content-security-policy)
- [Subresource Integrity (SRI)](https://www.internhack.in/learn/interview/web-security/security-subresource-integrity)
- [Same-Origin Policy (SOP)](https://www.internhack.in/learn/interview/web-security/security-same-origin-policy)
- [Brute Force Protection](https://www.internhack.in/learn/interview/web-security/security-brute-force-vulnerability)
- [CSPRNG](https://www.internhack.in/learn/interview/web-security/security-cryptographically-secure-random)
- [Data at Rest](https://www.internhack.in/learn/interview/web-security/security-sensitive-data-rest)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
