Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Non-Human Identity Security: Secrets, Bots & API Keys
New
301 students

Non-Human Identity Security: Secrets, Bots & API Keys

Secure service accounts, API keys, secrets and AI agents with OpenBao, OAuth 2.0, Kubernetes and cloud IAM labs
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Discover, inventory, and secure non-human identities, including service accounts, API keys, automation bots, and AI agents.
  • Implement centralized secrets management using OpenBao and HashiCorp Vault.
  • Secure machine-to-machine authentication using OAuth 2.0, OpenID Connect (OIDC), and JWT.
  • Automate API key rotation, credential expiration, token renewal, and secrets revocation.
  • Apply least-privilege access controls using IAM, RBAC, and Zero Trust security principles.
  • Secure Kubernetes service accounts, cloud workloads, and microservices using workload identity.
  • Detect exposed credentials and hardcoded secrets using Gitleaks and automated security scanning.
  • Protect CI/CD pipelines, GitHub Actions workflows, and DevSecOps automation credentials.
  • Secure AI agents, MCP servers, and automated tools against unauthorized access and credential misuse.
  • Build and test an enterprise non-human identity security solution using Python, FastAPI, Docker, and OpenBao.

Course content

18 sections • 109 lectures • 10h 9m total length
  • Welcome to Non-Human Identity Security6:07

    Welcome to Non-Human Identity Security: Secrets, Bots & API Keys. This opening lecture introduces the course, explains why machine identities have become one of the most important and most overlooked areas of cybersecurity, and shows how each section builds toward a practical, enterprise-style security platform.


    We begin with the problem. Modern organizations run on automation. Applications call APIs, pipelines deploy code, containers talk to databases, cloud workloads assume roles, and AI agents use tools. Every one of these actors needs an identity and a credential, and in most companies the number of non-human identities far exceeds the number of employees. They are often created quickly, rarely reviewed, and frequently over-privileged, which makes them attractive targets for attackers.


    You will see the learning path. We start with core concepts, discovery, and threats, then move into secrets scanning, least privilege, and secure secrets management with OpenBao. Later sections cover dynamic secrets, OAuth 2.0 and OpenID Connect, workload identity with SPIFFE and SPIRE, Kubernetes, cloud IAM, CI/CD pipelines, bots, AI agents and MCP, and finally monitoring, incident response, and governance.


    Each section pairs concise concept lectures with a hands-on lab that you run in your own local environment. By the end of this lecture you will understand the scope of the course, the tools involved, and how to get the most from every lesson, lab, and the final capstone project.

  • What Are Non-Human Identities?6:06

    What exactly is a non-human identity? This lecture defines the term clearly and gives you a vocabulary that you will use in every later section of the course.


    A non-human identity, often shortened to NHI, is any digital identity that represents software, a device, or an automated process rather than a person. Examples include service accounts used by applications, API keys that identify a client, automation bots, build and deployment pipelines, containers and workloads, scheduled jobs, cloud roles, certificates, and increasingly AI agents that act autonomously on behalf of a team.


    We explain why these identities exist. Systems must authenticate to one another without a person typing a password, so they rely on secrets such as keys, tokens, and certificates that grant access to data and services. Because these credentials are handled by code and configuration, they spread easily across repositories, containers, build logs, and chat messages.


    You will learn why NHIs now outnumber human identities in most environments, often by a wide margin, and why this growth creates risk. Many have no clear owner, never expire, and carry permissions far beyond what they need.


    We also introduce the lifecycle of a machine identity: creation, issuance, use, rotation, review, and retirement. By the end of this lecture you will be able to define NHIs, give concrete examples, and explain why securing them deserves its own discipline.

  • Human Identities vs. Machine Identities6:02

    Human and machine identities may both be called accounts, but they behave very differently, and security controls designed for people often fail when applied to machines. This lecture compares the two and explains the consequences.


    Humans authenticate interactively. They can type passwords, approve prompts on a phone, use biometrics, and notice when something looks suspicious. Organizations protect them with multi-factor authentication, single sign-on, onboarding and offboarding processes tied to HR systems, and regular access reviews.


    Machines cannot do any of that. A service must present a credential automatically, thousands of times per day, without anyone watching. That credential is usually a long string stored somewhere, which means anyone who obtains it can act as the machine. Machines also operate at high speed and volume, work around the clock, and often share one identity across many instances.


    We compare the two across several dimensions: creation, authentication, ownership, lifetime, privileges, monitoring, and offboarding. You will see that machine identities typically lack owners, are not tied to a leaver process, and rarely have multi-factor protection.


    We then discuss what good looks like for machines: short-lived credentials, strong cryptographic authentication, narrow permissions, automated rotation, and clear accountability. By the end of this lecture you will understand why a dedicated approach to machine identity security is necessary.

  • Service Accounts, Bots, API Keys, Tokens, and Certificates6:14

    This lecture explores the main types of non-human identities and credentials, so you can recognize them in any environment and understand how each one is used and misused.


    We begin with service accounts, which are accounts created for applications and services rather than people. They may live in an operating system, a database, a directory, or a cloud platform. Next are API keys, which are simple secret strings sent with requests to identify a calling application. They are easy to use but also easy to leak, and they often lack expiration.


    We then cover bots and automation accounts, such as those used in chat platforms, ticketing systems, and scheduled tasks. Tokens come next: bearer tokens, session tokens, and JSON Web Tokens that prove an identity or authorization for a limited time. Finally, we discuss certificates and keys, which provide stronger cryptographic proof of identity and are used in mutual TLS and workload authentication.


    For each type, we look at how it is created, where it is typically stored, its common weaknesses, and better alternatives. For example, long-lived static keys are risky, while short-lived tokens issued on demand are safer.


    By the end of this lecture you will be able to classify any machine credential, describe its strengths and weaknesses, and choose the right control for it.

  • Understanding the Machine Identity Attack Surface5:54

    Every credential, account, and integration adds to what security teams call the attack surface. This lecture explains the machine identity attack surface and why it grows so quickly.


    We start by mapping where machine identities exist. They appear in source code repositories, configuration files, container images, environment variables, build and deployment pipelines, cloud accounts, Kubernetes clusters, SaaS integrations, databases, and developer laptops. Each location is a place where a secret might be stored, copied, logged, or leaked.


    Next, we look at the factors that expand the surface: rapid cloud adoption, microservices, infrastructure as code, third-party integrations, and AI-driven automation. Teams create identities for convenience and speed, and the security review often comes later or never.


    We then examine the characteristics that make machine identities attractive to attackers. They often have broad permissions, long lifetimes, no multi-factor protection, and weak monitoring, so misuse can go unnoticed for months. A single leaked credential may provide direct access to production data or a path to move deeper into the environment.


    Finally, we introduce a defender's view. You cannot protect what you cannot see, so visibility, ownership, least privilege, and short credential lifetimes become the foundation of the program. By the end of this lecture you will be able to describe your organization's machine identity attack surface and where to begin reducing it.

  • Hands-On Lab 1: Build Your Non-Human Identity Security Lab3:34

    In this first hands-on lab you will build the Non-Human Identity Security lab environment that supports every exercise in the course.


    Start by confirming that your computer meets the requirements: a supported operating system, enough memory for several containers, and permission to install developer tools. Install Docker and Docker Compose, Python, and a code editor, then verify each installation with a version check.


    Next, download the lab package and review its folder structure. You will see directories for sample applications, configuration files, policies, scripts, and sample data that are used in later labs. Create a Python virtual environment, install the required libraries, and keep the project organized so that you can find files easily.


    Then start the base services with Docker Compose. These include a PostgreSQL database, a simple FastAPI application, and supporting tools that later become part of your secrets and identity platform. Check that each container is healthy, view its logs, and confirm that you can reach the web endpoints in your browser.


    Finally, create a small notes file where you will record versions, ports, and commands. All credentials in the lab are fake and are used only in your isolated local environment. Keep the environment ready, since every later lab builds on it.

  • Non-Human Identity Security - Complete Hands-On Lab P1:28

    This lecture is your guide to the Non-Human Identity Security complete hands-on lab package, the collection of files and resources that supports every practical exercise in the course.


    We explain what is included and how to use it. The package contains Docker Compose files for the lab services, sample Python and FastAPI applications, configuration templates, policy files for OpenBao, example Kubernetes manifests, CI/CD workflow samples, and test data that uses only fake, safe credentials. A README in each folder explains its purpose and how it connects to the course sections.


    You will learn how to download and extract the package, where to place it on your computer, and how to keep a clean working directory. We recommend copying starter files before editing them so you can always return to the original version. We also explain naming conventions used across the labs, so you can quickly find the files for a given lab number.


    We cover good habits for working with secrets in a lab: never commit real credentials to a repository, use dedicated test accounts, keep your lab isolated from production systems, and reset the environment after experiments.


    Finally, we show how to check your progress, troubleshoot problems with containers and ports, and ask questions. By the end of this lecture you will know where every resource lives and be ready to follow the labs with confidence.

Requirements

  • Basic understanding of cybersecurity concepts is helpful but not required.
  • Familiarity with APIs, Python, or scripting is beneficial but not mandatory.
  • Basic knowledge of Linux commands, Git, and cloud computing is recommended.
  • A Windows, macOS, or Linux computer capable of running Docker and development tools.
  • Internet access to download free, open-source software and course resources.
  • Willingness to complete practical labs involving APIs, secrets management, and identity security.
  • No prior experience with OpenBao, HashiCorp Vault, OAuth 2.0, or Kubernetes security is required.
  • No paid cloud subscriptions, commercial security tools, or enterprise licenses are required for the core labs.

Description

This course contains the use of artificial intelligence.

Master Machine Identity Security, Secrets Management, API Protection, and AI Agent Security

Modern organizations depend on thousands of non-human identities (NHIs), including service accounts, API keys, automation bots, machine identities, cloud workloads, microservices, and AI agents. These digital identities power enterprise applications, cloud infrastructure, and automated workflows. However, poorly managed credentials, excessive permissions, and insecure authentication create significant cybersecurity risks.

Non-Human Identity Security: Secrets, Bots & API Keys is a comprehensive, hands-on cybersecurity training course designed to help you discover, protect, monitor, and govern machine identities across modern enterprise environments.

Whether you're a cybersecurity professional, DevSecOps engineer, cloud security architect, software developer, IAM specialist, or AI engineer, this course provides practical techniques for securing automated identities and implementing enterprise-grade security controls.

What Will You Learn?

You'll explore essential machine identity security concepts and develop practical skills in:

  • Non-Human Identity Management (NHIM): Discover, inventory, classify, and govern machine identities, service accounts, and automation credentials.

  • Secrets Management: Secure API keys, passwords, tokens, certificates, and application secrets using OpenBao and HashiCorp Vault.

  • API Security: Implement OAuth 2.0, OpenID Connect (OIDC), JSON Web Tokens (JWT), and machine-to-machine authentication.

  • Credential Security: Automate secret rotation, credential expiration, token renewal, and access revocation.

  • Cloud Identity Security: Explore AWS IAM, Azure Managed Identities, Google Cloud IAM, and workload identity federation.

  • Kubernetes Security: Protect Kubernetes service accounts, implement Role-Based Access Control (RBAC), and secure containerized workloads.

  • DevSecOps Security: Integrate Gitleaks, GitHub Actions security, secret scanning, and CI/CD pipeline hardening.

  • Zero Trust Security: Apply least-privilege access, workload authentication, certificate security, and SPIFFE/SPIRE identity standards.

  • AI Agent Security: Secure autonomous AI agents, Model Context Protocol (MCP) servers, automation bots, and agent-to-tool authentication.

  • Identity Threat Detection: Identify compromised credentials, excessive permissions, unauthorized API access, and suspicious machine activity.

Learn Through Hands-On Cybersecurity Labs

This course emphasizes practical implementation rather than theory alone.

You'll build secure applications using Python, FastAPI, Docker, PostgreSQL, Kubernetes, Keycloak, and OpenBao. Through guided security labs, you'll investigate exposed secrets, configure authentication policies, implement dynamic credentials, secure APIs, and automate security testing.

You'll also explore OWASP Non-Human Identity Top 10 risks, Identity and Access Management (IAM) best practices, Privileged Access Management (PAM) principles, and enterprise security governance.

Build an Enterprise Security Capstone Project

Your final project brings everything together. You'll design a Non-Human Identity Security Platform that integrates centralized secrets management, secure machine authentication, least-privilege authorization, credential rotation, workload identity protection, and security monitoring.

This portfolio-ready project demonstrates practical approaches to protecting modern applications and automated enterprise environments.

Who Should Enroll?

This course is ideal for professionals interested in cybersecurity, cloud security, API security, DevSecOps, identity security, Kubernetes security, Zero Trust Architecture, secrets management, and AI security engineering.

No prior experience with specialized machine identity security tools is required.

Start building the skills to secure the invisible identities powering today's cloud applications, automation platforms, and AI-driven enterprises.

Who this course is for:

  • Cybersecurity Professionals looking to specialize in non-human identity security, credential protection, and machine identity management.
  • Cloud Security Engineers responsible for protecting service accounts, cloud workloads, IAM roles, and machine credentials.
  • DevSecOps Engineers seeking to secure CI/CD pipelines, automation workflows, API keys, and application secrets.
  • Identity and Access Management (IAM) Specialists interested in machine authentication, workload identity, and least-privilege authorization.
  • Software Developers and API Engineers building secure applications, microservices, and machine-to-machine integrations.
  • Kubernetes and Platform Engineers responsible for workload authentication, service accounts, RBAC, and container security.
  • AI Engineers and Agent Developers looking to protect autonomous AI agents, MCP servers, and AI-powered automation.
  • Security Architects designing Zero Trust architectures, secrets management solutions, and enterprise identity governance.
  • IT Professionals and System Administrators managing automation accounts, service credentials, and enterprise infrastructure.
  • Cybersecurity Students and Career Changers seeking hands-on experience in API security, cloud identity security, and DevSecOps.