Loading
0x50Lesson 6 of 6

Protect privileged and workload identities

Reduce risk from administrators, services, and machine credentials.

12 min 5-question quiz
By the end of this lesson you can
  • Apply separate accounts, just-in-time elevation, and credential hygiene to powerful identities.

Privileged identities can make high-impact changes, so use separate administrative access, strong authentication, limited scope, and monitored workflows. Just-in-time elevation grants extra permission for a short approved task instead of keeping it permanently. Workload identities let applications and services authenticate; prefer short-lived, scoped credentials or managed identity mechanisms over long-lived shared secrets.

Inventory service identities, assign an owner, rotate or revoke credentials when needed, and alert on unexpected use. Separate duties for sensitive approvals and avoid sharing administrator accounts. The right control depends on threat model and environment; no single pattern replaces monitoring and review.

Practice: review a deploy pipeline

Try it

Up to 15 XP

Audit this pipeline’s access

This deploy configuration works. Click everything that would worry you in a security review.

deploy.yml (round 1 of 1)Flags found 0/0

Click every suspicious section. There are 3.

deploy: runs-on: ubuntu-latest env: CLOUD_KEY: AKIA3XEXAMPLE7Q2 ROLE: organization-admin REGION: eu-west-1 steps: - run: ./deploy.sh - run: echo "Using $CLOUD_KEY"

Try it

Up to 15 XP

Standing access or just-in-time?

Permanent access is convenient, and it’s also permanent risk. Decide what each task should use.

0 of 5 sortedScore 0/0
  • “A developer reads the team’s dashboards.”

  • “An on-call engineer needs production database access at 3 a.m.”

  • “An admin changes a global security setting once a quarter.”

  • “An app reads objects from a storage bucket.”

  • “A nightly job writes to the data warehouse.”

Key takeaways

  • Apply separate accounts, just-in-time elevation, and credential hygiene to powerful identities.

  • Treat access as a lifecycle: grant deliberately, review regularly, and revoke promptly.

Lesson quiz

5 questions · pass with 4 correct · up to 50 XP

Passing this quiz completes the lesson and keeps your streak going. Questions you miss come back in review sessions later.

Questions about this lesson

Stuck? Ask. Figured something out? Share it. Explaining is one of the best ways to learn.

Loading posts…