[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG1WDY1CPCE3W2SHBSVBM6":3,"skill-same:01M6AG1WDY1CPCE3W2SHBSVBM6":152},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":93,"commitSha":94,"skillDirectory":95,"forksCount":96,"repositoryHtmlUrl":97,"repositoryHomepageUrl":98,"ownerHtmlUrl":99,"ownerBlogUrl":100,"ownerDescription":101,"updatedAt":102,"install":103,"resources":116},"01M6AG1WDY1CPCE3W2SHBSVBM6","performing-service-account-credential-rotation","服务账号凭证自动轮换","Automates credential rotation for service accounts across Active Directory, cloud platforms, and application databases to eliminate stale secrets and reduce compromise risk. Use when rotating or automating rotation of service account passwords, API keys, or secrets stored in a vault.","自动轮换 Active Directory、云平台和应用数据库中服务账号的凭证，以消除过期密钥（secret）并降低被入侵风险。当需要轮换或自动化轮换服务账号密码、API 密钥或保存在密钥保险库（vault）中的密钥时使用。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRK82SYBDNZ3SG8YAH5A3D","凭证与密钥管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"performing service account credential rotation","risk","secrets","api","vault","credential-rotation","secrets-management","PAM","t1098","initial-access","directory","t1078","t1003","service-accounts","cloud","pr","identity","automation","cybersecurity","2026-11-10 10:12:30",false,"---\nname: performing-service-account-credential-rotation\ndescription: Automates credential rotation for service accounts across Active Directory,\n  cloud platforms, and application databases to eliminate stale secrets and reduce\n  compromise risk. Use when rotating or automating rotation of service account passwords,\n  API keys, or secrets stored in a vault.\ndomain: cybersecurity\nsubdomain: identity-access-management\ntags:\n- service-accounts\n- credential-rotation\n- secrets-management\n- pam\n- automation\n- vault\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.AA-01\n- PR.AA-02\n- PR.AA-05\n- PR.AA-06\nmitre_attack:\n- T1078\n- T1110\n- T1556\n- T1098\n- T1003\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - initial-access\n  - positioning\n  - stealth\n  techniques:\n  - id: F1006.001\n    name: 'Account Takeover: Exposed API Key'\n    tactic: initial-access\n    source: f3\n  - id: F1006.002\n    name: 'Account Takeover: Exposed Login Credential'\n    tactic: initial-access\n    source: f3\n  - id: T1110\n    name: Brute Force\n    tactic: initial-access\n    source: attack\n  - id: F1005\n    name: Account Manipulation\n    tactic: positioning\n    source: f3\n  - id: F1023\n    name: Device Fingerprint Spoofing\n    tactic: stealth\n    source: f3\n---\n\n# Performing Service Account Credential Rotation\n\n## Overview\n\nService accounts are non-human identities used by applications, daemons, CI\u002FCD pipelines, and automated processes to authenticate to systems and APIs. These accounts often have elevated privileges and their credentials (passwords, API keys, certificates, tokens) are frequently long-lived and shared across teams, making them prime targets for attackers. Credential rotation is the systematic process of replacing these secrets on a scheduled basis, propagating new credentials to all dependent systems, and verifying service continuity after rotation.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing service account credential rotation\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Inventory of all service accounts across AD, cloud, and applications\n- Secrets management platform (HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, or CyberArk)\n- Service dependency mapping (which services use which credentials)\n- Change management process for rotation windows\n- Monitoring for service health post-rotation\n\n## Core Concepts\n\n### Service Account Types\n\n| Type | Platform | Credential | Rotation Method |\n|------|----------|-----------|-----------------|\n| Active Directory Service Account | Windows\u002FAD | Password | gMSA (automatic) or PAM-managed |\n| AWS IAM User | AWS | Access Key\u002FSecret Key | AWS Secrets Manager rotation Lambda |\n| GCP Service Account | GCP | JSON key file | Key rotation via IAM API |\n| Azure Service Principal | Azure | Client secret\u002Fcertificate | Key Vault + rotation policy |\n| Database Service Account | SQL\u002FOracle\u002FPostgres | Password | Vault dynamic secrets |\n| API Key | SaaS applications | API token | Application-specific API |\n\n### Group Managed Service Accounts (gMSA)\n\nWindows gMSAs provide automatic password management by Active Directory:\n- AD automatically rotates the password every 30 days\n- Password is 240 bytes, cryptographically random\n- Multiple servers can use the same gMSA simultaneously\n- No administrator knows or manages the password\n- Eliminates manual rotation for Windows services\n\n### Rotation Architecture\n\n```\nSecrets Manager \u002F Vault\n        │\n        ├── Rotation Trigger (schedule or on-demand)\n        │\n        ├── Generate new credential\n        │\n        ├── Update credential at source (AD, cloud IAM, database)\n        │\n        ├── Update credential in all consumers:\n        │   ├── Application configuration\n        │   ├── CI\u002FCD pipeline secrets\n        │   ├── Kubernetes secrets\n        │   └── Other dependent services\n        │\n        ├── Verify service health\n        │   ├── Health check endpoints\n        │   ├── Authentication test\n        │   └── Functional smoke test\n        │\n        └── Revoke old credential (after grace period)\n```\n\n## Workflow\n\n### Step 1: Discover and Inventory Service Accounts\n\nEnumerate all service accounts and their dependencies:\n\n```powershell\n# Active Directory: Find all service accounts\nGet-ADServiceAccount -Filter * -Properties *\nGet-ADUser -Filter {ServicePrincipalName -ne \"$null\"} -Properties ServicePrincipalName,PasswordLastSet,LastLogonDate\n\n# Find accounts with passwords older than 90 days\n$threshold = (Get-Date).AddDays(-90)\nGet-ADUser -Filter {PasswordLastSet -lt $threshold -and Enabled -eq $true} -Properties PasswordLastSet,ServicePrincipalName |\n    Where-Object {$_.ServicePrincipalName} |\n    Select-Object Name, PasswordLastSet, ServicePrincipalName\n```\n\n### Step 2: Implement gMSA for Windows Services\n\n```powershell\n# Create KDS Root Key (one-time, domain-wide)\nAdd-KdsRootKey -EffectiveImmediately\n\n# Create the gMSA account\nNew-ADServiceAccount -Name \"svc-webapp-gmsa\" `\n    -DNSHostName \"svc-webapp-gmsa.corp.example.com\" `\n    -PrincipalsAllowedToRetrieveManagedPassword \"WebServerGroup\" `\n    -KerberosEncryptionType AES128,AES256\n\n# Install on target server\nInstall-ADServiceAccount -Identity \"svc-webapp-gmsa\"\n\n# Test the account\nTest-ADServiceAccount -Identity \"svc-webapp-gmsa\"\n\n# Configure IIS Application Pool to use gMSA\n# Set identity to: CORP\\svc-webapp-gmsa$\n```\n\n### Step 3: AWS Access Key Rotation with Secrets Manager\n\n```python\nimport boto3\nimport json\n\ndef rotate_iam_access_key(secret_arn, iam_username):\n    \"\"\"Rotate an IAM user's access key via Secrets Manager.\"\"\"\n    iam = boto3.client(\"iam\")\n    sm = boto3.client(\"secretsmanager\")\n\n    # Create new access key\n    new_key = iam.create_access_key(UserName=iam_username)\n    new_access_key = new_key[\"AccessKey\"][\"AccessKeyId\"]\n    new_secret_key = new_key[\"AccessKey\"][\"SecretAccessKey\"]\n\n    # Store new credentials in Secrets Manager\n    sm.put_secret_value(\n        SecretId=secret_arn,\n        SecretString=json.dumps({\n            \"accessKeyId\": new_access_key,\n            \"secretAccessKey\": new_secret_key,\n            \"username\": iam_username,\n        })\n    )\n\n    # List old access keys and deactivate them\n    keys = iam.list_access_keys(UserName=iam_username)\n    for key in keys[\"AccessKeyMetadata\"]:\n        if key[\"AccessKeyId\"] != new_access_key and key[\"Status\"] == \"Active\":\n            iam.update_access_key(\n                UserName=iam_username,\n                AccessKeyId=key[\"AccessKeyId\"],\n                Status=\"Inactive\"\n            )\n\n    return {\"new_key_id\": new_access_key, \"old_keys_deactivated\": True}\n```\n\n### Step 4: Database Credential Rotation with Vault\n\n```python\nimport hvac\n\ndef configure_vault_database_rotation(vault_url, vault_token, db_config):\n    \"\"\"Configure HashiCorp Vault for automatic database credential rotation.\"\"\"\n    client = hvac.Client(url=vault_url, token=vault_token)\n\n    # Enable database secrets engine\n    client.sys.enable_secrets_engine(\n        backend_type=\"database\",\n        path=\"database\"\n    )\n\n    # Configure database connection\n    client.secrets.database.configure(\n        name=db_config[\"name\"],\n        plugin_name=\"postgresql-database-plugin\",\n        connection_url=f\"postgresql:\u002F\u002F{{{{username}}}}:{{{{password}}}}@\"\n                       f\"{db_config['host']}:{db_config['port']}\u002F{db_config['database']}\",\n        allowed_roles=[db_config[\"role_name\"]],\n        username=db_config[\"admin_user\"],\n        password=db_config[\"admin_password\"],\n    )\n\n    # Create a role for dynamic credentials\n    client.secrets.database.create_role(\n        name=db_config[\"role_name\"],\n        db_name=db_config[\"name\"],\n        creation_statements=[\n            \"CREATE ROLE \\\"{{name}}\\\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';\",\n            f\"GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO \\\"{{{{name}}}}\\\";\"\n        ],\n        default_ttl=\"1h\",\n        max_ttl=\"24h\",\n    )\n\n    return {\"status\": \"configured\", \"role\": db_config[\"role_name\"]}\n```\n\n### Step 5: Post-Rotation Verification\n\nAfter every rotation, verify service continuity:\n\n```python\nimport requests\nimport time\n\ndef verify_service_health(service_endpoints, max_retries=3, delay=10):\n    \"\"\"Check that services are healthy after credential rotation.\"\"\"\n    results = []\n    for endpoint in service_endpoints:\n        for attempt in range(max_retries):\n            try:\n                response = requests.get(\n                    endpoint[\"health_url\"],\n                    timeout=10,\n                    headers=endpoint.get(\"headers\", {})\n                )\n                healthy = response.status_code == 200\n                results.append({\n                    \"service\": endpoint[\"name\"],\n                    \"status\": \"healthy\" if healthy else f\"unhealthy ({response.status_code})\",\n                    \"attempt\": attempt + 1,\n                })\n                if healthy:\n                    break\n            except requests.RequestException as e:\n                results.append({\n                    \"service\": endpoint[\"name\"],\n                    \"status\": f\"error: {str(e)}\",\n                    \"attempt\": attempt + 1,\n                })\n            if attempt \u003C max_retries - 1:\n                time.sleep(delay)\n\n    return results\n```\n\n## Validation Checklist\n\n- [ ] Complete inventory of service accounts with dependency mapping\n- [ ] gMSA implemented for all eligible Windows service accounts\n- [ ] Cloud access keys rotated via secrets manager (AWS, GCP, Azure)\n- [ ] Database credentials managed via dynamic secrets (Vault) or rotation policy\n- [ ] Rotation schedule defined (30-90 days depending on risk level)\n- [ ] Post-rotation health checks automated\n- [ ] Alerting configured for rotation failures\n- [ ] Old credentials revoked after grace period\n- [ ] Rotation events logged and auditable\n- [ ] Rollback procedure documented and tested\n\n## References\n\n- [Google Cloud Service Account Key Rotation](https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fkey-rotation)\n- [AWS Secrets Manager Rotation](https:\u002F\u002Fdocs.aws.amazon.com\u002Fsecretsmanager\u002Flatest\u002Fuserguide\u002Frotating-secrets.html)\n- [Microsoft gMSA Documentation](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fwindows-server\u002Fsecurity\u002Fgroup-managed-service-accounts\u002Fgroup-managed-service-accounts-overview)\n- [HashiCorp Vault Database Secrets Engine](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fvault\u002Fdocs\u002Fsecrets\u002Fdatabases)\n","# Performing Service Account Credential Rotation\n\n## Overview\n\nService accounts are non-human identities used by applications, daemons, CI\u002FCD pipelines, and automated processes to authenticate to systems and APIs. These accounts often have elevated privileges and their credentials (passwords, API keys, certificates, tokens) are frequently long-lived and shared across teams, making them prime targets for attackers. Credential rotation is the systematic process of replacing these secrets on a scheduled basis, propagating new credentials to all dependent systems, and verifying service continuity after rotation.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing service account credential rotation\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Inventory of all service accounts across AD, cloud, and applications\n- Secrets management platform (HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, or CyberArk)\n- Service dependency mapping (which services use which credentials)\n- Change management process for rotation windows\n- Monitoring for service health post-rotation\n\n## Core Concepts\n\n### Service Account Types\n\n| Type | Platform | Credential | Rotation Method |\n|------|----------|-----------|-----------------|\n| Active Directory Service Account | Windows\u002FAD | Password | gMSA (automatic) or PAM-managed |\n| AWS IAM User | AWS | Access Key\u002FSecret Key | AWS Secrets Manager rotation Lambda |\n| GCP Service Account | GCP | JSON key file | Key rotation via IAM API |\n| Azure Service Principal | Azure | Client secret\u002Fcertificate | Key Vault + rotation policy |\n| Database Service Account | SQL\u002FOracle\u002FPostgres | Password | Vault dynamic secrets |\n| API Key | SaaS applications | API token | Application-specific API |\n\n### Group Managed Service Accounts (gMSA)\n\nWindows gMSAs provide automatic password management by Active Directory:\n- AD automatically rotates the password every 30 days\n- Password is 240 bytes, cryptographically random\n- Multiple servers can use the same gMSA simultaneously\n- No administrator knows or manages the password\n- Eliminates manual rotation for Windows services\n\n### Rotation Architecture\n\n```\nSecrets Manager \u002F Vault\n        │\n        ├── Rotation Trigger (schedule or on-demand)\n        │\n        ├── Generate new credential\n        │\n        ├── Update credential at source (AD, cloud IAM, database)\n        │\n        ├── Update credential in all consumers:\n        │   ├── Application configuration\n        │   ├── CI\u002FCD pipeline secrets\n        │   ├── Kubernetes secrets\n        │   └── Other dependent services\n        │\n        ├── Verify service health\n        │   ├── Health check endpoints\n        │   ├── Authentication test\n        │   └── Functional smoke test\n        │\n        └── Revoke old credential (after grace period)\n```\n\n## Workflow\n\n### Step 1: Discover and Inventory Service Accounts\n\nEnumerate all service accounts and their dependencies:\n\n```powershell\n# Active Directory: Find all service accounts\nGet-ADServiceAccount -Filter * -Properties *\nGet-ADUser -Filter {ServicePrincipalName -ne \"$null\"} -Properties ServicePrincipalName,PasswordLastSet,LastLogonDate\n\n# Find accounts with passwords older than 90 days\n$threshold = (Get-Date).AddDays(-90)\nGet-ADUser -Filter {PasswordLastSet -lt $threshold -and Enabled -eq $true} -Properties PasswordLastSet,ServicePrincipalName |\n    Where-Object {$_.ServicePrincipalName} |\n    Select-Object Name, PasswordLastSet, ServicePrincipalName\n```\n\n### Step 2: Implement gMSA for Windows Services\n\n```powershell\n# Create KDS Root Key (one-time, domain-wide)\nAdd-KdsRootKey -EffectiveImmediately\n\n# Create the gMSA account\nNew-ADServiceAccount -Name \"svc-webapp-gmsa\" `\n    -DNSHostName \"svc-webapp-gmsa.corp.example.com\" `\n    -PrincipalsAllowedToRetrieveManagedPassword \"WebServerGroup\" `\n    -KerberosEncryptionType AES128,AES256\n\n# Install on target server\nInstall-ADServiceAccount -Identity \"svc-webapp-gmsa\"\n\n# Test the account\nTest-ADServiceAccount -Identity \"svc-webapp-gmsa\"\n\n# Configure IIS Application Pool to use gMSA\n# Set identity to: CORP\\svc-webapp-gmsa$\n```\n\n### Step 3: AWS Access Key Rotation with Secrets Manager\n\n```python\nimport boto3\nimport json\n\ndef rotate_iam_access_key(secret_arn, iam_username):\n    \"\"\"Rotate an IAM user's access key via Secrets Manager.\"\"\"\n    iam = boto3.client(\"iam\")\n    sm = boto3.client(\"secretsmanager\")\n\n    # Create new access key\n    new_key = iam.create_access_key(UserName=iam_username)\n    new_access_key = new_key[\"AccessKey\"][\"AccessKeyId\"]\n    new_secret_key = new_key[\"AccessKey\"][\"SecretAccessKey\"]\n\n    # Store new credentials in Secrets Manager\n    sm.put_secret_value(\n        SecretId=secret_arn,\n        SecretString=json.dumps({\n            \"accessKeyId\": new_access_key,\n            \"secretAccessKey\": new_secret_key,\n            \"username\": iam_username,\n        })\n    )\n\n    # List old access keys and deactivate them\n    keys = iam.list_access_keys(UserName=iam_username)\n    for key in keys[\"AccessKeyMetadata\"]:\n        if key[\"AccessKeyId\"] != new_access_key and key[\"Status\"] == \"Active\":\n            iam.update_access_key(\n                UserName=iam_username,\n                AccessKeyId=key[\"AccessKeyId\"],\n                Status=\"Inactive\"\n            )\n\n    return {\"new_key_id\": new_access_key, \"old_keys_deactivated\": True}\n```\n\n### Step 4: Database Credential Rotation with Vault\n\n```python\nimport hvac\n\ndef configure_vault_database_rotation(vault_url, vault_token, db_config):\n    \"\"\"Configure HashiCorp Vault for automatic database credential rotation.\"\"\"\n    client = hvac.Client(url=vault_url, token=vault_token)\n\n    # Enable database secrets engine\n    client.sys.enable_secrets_engine(\n        backend_type=\"database\",\n        path=\"database\"\n    )\n\n    # Configure database connection\n    client.secrets.database.configure(\n        name=db_config[\"name\"],\n        plugin_name=\"postgresql-database-plugin\",\n        connection_url=f\"postgresql:\u002F\u002F{{{{username}}}}:{{{{password}}}}@\"\n                       f\"{db_config['host']}:{db_config['port']}\u002F{db_config['database']}\",\n        allowed_roles=[db_config[\"role_name\"]],\n        username=db_config[\"admin_user\"],\n        password=db_config[\"admin_password\"],\n    )\n\n    # Create a role for dynamic credentials\n    client.secrets.database.create_role(\n        name=db_config[\"role_name\"],\n        db_name=db_config[\"name\"],\n        creation_statements=[\n            \"CREATE ROLE \\\"{{name}}\\\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';\",\n            f\"GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO \\\"{{{{name}}}}\\\";\"\n        ],\n        default_ttl=\"1h\",\n        max_ttl=\"24h\",\n    )\n\n    return {\"status\": \"configured\", \"role\": db_config[\"role_name\"]}\n```\n\n### Step 5: Post-Rotation Verification\n\nAfter every rotation, verify service continuity:\n\n```python\nimport requests\nimport time\n\ndef verify_service_health(service_endpoints, max_retries=3, delay=10):\n    \"\"\"Check that services are healthy after credential rotation.\"\"\"\n    results = []\n    for endpoint in service_endpoints:\n        for attempt in range(max_retries):\n            try:\n                response = requests.get(\n                    endpoint[\"health_url\"],\n                    timeout=10,\n                    headers=endpoint.get(\"headers\", {})\n                )\n                healthy = response.status_code == 200\n                results.append({\n                    \"service\": endpoint[\"name\"],\n                    \"status\": \"healthy\" if healthy else f\"unhealthy ({response.status_code})\",\n                    \"attempt\": attempt + 1,\n                })\n                if healthy:\n                    break\n            except requests.RequestException as e:\n                results.append({\n                    \"service\": endpoint[\"name\"],\n                    \"status\": f\"error: {str(e)}\",\n                    \"attempt\": attempt + 1,\n                })\n            if attempt \u003C max_retries - 1:\n                time.sleep(delay)\n\n    return results\n```\n\n## Validation Checklist\n\n- [ ] Complete inventory of service accounts with dependency mapping\n- [ ] gMSA implemented for all eligible Windows service accounts\n- [ ] Cloud access keys rotated via secrets manager (AWS, GCP, Azure)\n- [ ] Database credentials managed via dynamic secrets (Vault) or rotation policy\n- [ ] Rotation schedule defined (30-90 days depending on risk level)\n- [ ] Post-rotation health checks automated\n- [ ] Alerting configured for rotation failures\n- [ ] Old credentials revoked after grace period\n- [ ] Rotation events logged and auditable\n- [ ] Rollback procedure documented and tested\n\n## References\n\n- [Google Cloud Service Account Key Rotation](https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fkey-rotation)\n- [AWS Secrets Manager Rotation](https:\u002F\u002Fdocs.aws.amazon.com\u002Fsecretsmanager\u002Flatest\u002Fuserguide\u002Frotating-secrets.html)\n- [Microsoft gMSA Documentation](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fwindows-server\u002Fsecurity\u002Fgroup-managed-service-accounts\u002Fgroup-managed-service-accounts-overview)\n- [HashiCorp Vault Database Secrets Engine](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fvault\u002Fdocs\u002Fsecrets\u002Fdatabases)\n",{"name":5,"tags":55,"author":57,"domain":49,"license":16,"version":58,"mitre_f3":59,"nist_csf":82,"subdomain":87,"description":7,"mitre_attack":88},[44,36,37,56,48,35],"pam","mahipal","1.0",{"tactics":60,"version":63,"techniques":64},[40,61,62],"positioning","stealth","1.1",[65,69,72,76,79],{"id":66,"name":67,"source":68,"tactic":40},"F1006.001","Account Takeover: Exposed API Key","f3",{"id":70,"name":71,"source":68,"tactic":40},"F1006.002","Account Takeover: Exposed Login Credential",{"id":73,"name":74,"source":75,"tactic":40},"T1110","Brute Force","attack",{"id":77,"name":78,"source":68,"tactic":61},"F1005","Account Manipulation",{"id":80,"name":81,"source":68,"tactic":62},"F1023","Device Fingerprint Spoofing",[83,84,85,86],"PR.AA-01","PR.AA-02","PR.AA-05","PR.AA-06","identity-access-management",[89,73,90,91,92],"T1078","T1556","T1098","T1003","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fperforming-service-account-credential-rotation",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":104,"prompt":114,"zipAvailable":115},[105,108,111],{"tool":106,"command":107},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-service-account-credential-rotation",{"tool":109,"command":110},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-service-account-credential-rotation",{"tool":112,"command":113},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-service-account-credential-rotation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002FSKILL.md",true,[117,123,128,134,138,142,148],{"path":118,"resourceType":119,"resourceTypeDesc":120,"sizeBytes":121,"sourceHtmlUrl":122},"assets\u002Ftemplate.md","ASSET","资产文件",1087,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002Fassets\u002Ftemplate.md",{"path":124,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":126,"sourceHtmlUrl":127},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002FLICENSE",{"path":129,"resourceType":130,"resourceTypeDesc":131,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fapi-reference.md","REFERENCE","参考文档",2376,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002Freferences\u002Fapi-reference.md",{"path":135,"resourceType":130,"resourceTypeDesc":131,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fstandards.md",1964,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002Freferences\u002Fstandards.md",{"path":139,"resourceType":130,"resourceTypeDesc":131,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fworkflows.md",3586,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002Freferences\u002Fworkflows.md",{"path":143,"resourceType":144,"resourceTypeDesc":145,"sizeBytes":146,"sourceHtmlUrl":147},"scripts\u002Fagent.py","SCRIPT","脚本",7042,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002Fscripts\u002Fagent.py",{"path":149,"resourceType":144,"resourceTypeDesc":145,"sizeBytes":150,"sourceHtmlUrl":151},"scripts\u002Fprocess.py",9976,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-service-account-credential-rotation\u002Fscripts\u002Fprocess.py",[153,183,211,242,273,303],{"skillNo":154,"name":155,"nameZh":156,"description":157,"descriptionZh":158,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":159,"categories":160,"keywords":165,"publishedAt":50},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[161,162],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":163,"categoryName":164,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[166,167,168,169,170,49,171,47,46,172,173,174,175,176,177,178,179,180,181,182],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","security","incident response","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":184,"name":185,"nameZh":186,"description":187,"descriptionZh":188,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":189,"categories":190,"keywords":195,"publishedAt":50},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[191,192],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":193,"categoryName":194,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[196,179,197,198,170,199,49,46,200,201,202,203,204,205,206,33,207,208,209,210],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":212,"name":213,"nameZh":214,"description":215,"descriptionZh":216,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":217,"categories":218,"keywords":225,"publishedAt":50},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[219,222],{"categoryNo":220,"categoryName":221,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":223,"categoryName":224,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[206,226,227,228,229,49,230,231,200,232,233,234,235,236,237,42,238,239,240,241],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":243,"name":244,"nameZh":245,"description":246,"descriptionZh":247,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":248,"categories":249,"keywords":254,"publishedAt":50},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[250,251],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":252,"categoryName":253,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[255,256,257,49,258,259,260,261,262,263,264,265,266,267,268,269,203,270,271,272],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":274,"name":275,"nameZh":276,"description":277,"descriptionZh":278,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":279,"categories":280,"keywords":285,"publishedAt":50},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[281,284],{"categoryNo":282,"categoryName":283,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[286,287,288,49,289,290,291,292,293,294,295,296,297,298,32,299,34,300,301,302],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","vulnerability","prioritization","ssvc","decision-tree",{"skillNo":304,"name":305,"nameZh":306,"description":307,"descriptionZh":308,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":309,"categories":310,"keywords":315,"publishedAt":50},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[311,312],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":313,"categoryName":314,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[170,316,49,317,318,319,320,321,322,323,324,42,325,238,326,327,328,329,330,331],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]