Logo : Splunk Enterprise Public Exposure Hardening

Splunk Enterprise Public Exposure Hardening

Communauté
chambear2809
splunk-enterprise-public-exposure-hardening

Use when the user asks to expose Splunk Enterprise on the public internet, harden a Splunk search head against internet exposure, configure TLS / HSTS / CSP / mTLS / per-IP rate limit / DMZ heavy forwarder, lock down splunkd or the KV store, fix splunk.secret / pass4SymmKey defaults, evaluate against the latest SVD floor (10.6.0 / 10.4.0 / 10.2.2 / 10.0.5 / 9.4.10 / 9.3.11), or render nginx / HAProxy / WAF reference configs in front of Splunk. Render, preflight, apply, and validate hardening of an on-prem Splunk Enterprise deployment for public-internet exposure across all four edge surfaces (Splunk Web on 8000, HEC on 8088, Splunk-to-Splunk on 9997, splunkd REST on 8089) plus reference reverse-proxy / WAF / firewall templates and a structured operator handoff.

Add to TypingMind

Présentation

Éditeurchambear2809
Dépôtsplunk-cisco-skills
Nom de la compétencesplunk-enterprise-public-exposure-hardening
Étoiles
40
Forks
7
Fichiers inclus
30
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 30

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par chambear2809 sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Splunk Enterprise Public Exposure Hardening dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/chambear2809/splunk-cisco-skills/tree/main/skills/splunk-enterprise-public-exposure-hardening
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/chambear2809/splunk-cisco-skills.git /tmp/splunk-cisco-skills
mkdir -p .claude/skills
cp -r /tmp/splunk-cisco-skills/skills/splunk-enterprise-public-exposure-hardening .claude/skills/splunk-enterprise-public-exposure-hardening
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Splunk Enterprise Public Exposure Hardening dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Splunk Enterprise Public Exposure Hardening dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Splunk Enterprise Public Exposure Hardening n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Splunk Enterprise Public Internet Exposure Hardening

Prerequisites

Tool or accessPurposeVerify
Bash and Python 3Run bundled setup and validation helpersbash --version && python3 --version
Required product/platform accessInspect or configure the selected targetComplete the documented preflight
Credential files for live modesKeep secrets out of chatVerify paths only

Workflow Overview

text
┌───────────┐   ┌───────────────┐   ┌───────────────┐   ┌─────────────────┐
│ Preflight │ → │ Render/review │ → │ Apply/handoff │ → │ Validate evidence │
└───────────┘   └───────────────┘   └───────────────┘   └─────────────────┘

When to Activate

  • Expose Splunk Enterprise on the public internet, harden a Splunk search head against internet exposure, configure TLS / HSTS / CSP / mTLS / per-IP rate limit / DMZ heavy forwarder, lock down splunkd or the KV store, fix splunk.secret /.
  • Preview and review the splunk enterprise public exposure hardening workflow before any live apply phase.
  • Diagnose failed prerequisites, generated assets, configuration, or validation evidence.

Scope

Follow the documented read-only or render-first path whenever it is available. This skill does not imply permission to mutate live systems. Require explicit apply flags, protected credentials, and operator review for state changes.

Examples

Inspect the supported setup modes before selecting one:

bash
bash skills/splunk-enterprise-public-exposure-hardening/scripts/setup.sh --help

Expected output: usage, supported modes, and required arguments are displayed without changing the target environment.

Inspect validation modes before running completion checks:

bash
bash skills/splunk-enterprise-public-exposure-hardening/scripts/validate.sh --help

Expected output: offline, live, and completion options are displayed when the skill supports them; help exits without mutation.

Troubleshooting

IssueCauseResolution
Preflight failsA required tool or access path is missingResolve it before rendering or applying
Rendered assets are incompleteRequired non-secret inputs are absentComplete intake and render again
Apply is blockedReview, credentials, or explicit acceptance is missingUse the documented handoff
Validation is incompleteLive evidence is unavailableRecord the gap and keep completion open

This skill prepares an on-prem Splunk Enterprise deployment for public-internet exposure with defense in depth across the Splunk node, the reverse-proxy / WAF tier, and the network, plus an explicit operator handoff for parts that cannot be safely automated. It is render-first: the default phase produces a reviewable directory of *.conf overlays, nginx / HAProxy / firewall templates, and operator handoff Markdown — and refuses to apply changes until the operator passes --accept-public-exposure.

Read this first — what Splunk does NOT have

Splunk Enterprise is "designed to run on a trusted network." Several common assumptions about Splunk Web are wrong, and the skill explicitly guards against them:

  • No customHttpHeaders setting in web.conf. Browser security headers (Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Cache-Control) come from the reverse proxy only.
  • No CAPTCHA / bot challenge on the login form.
  • No native WebAuthn / FIDO2 in Splunk Web — federate to an IdP (Okta, Entra ID, Duo Universal Prompt) for phishing-resistant MFA.
  • lockoutAttempts is per-user, not per-IP. The admin role ships with never_lockout = enabled. The skill flips this to disabled and the WAF / proxy provides the per-IP rate limit.
  • No XFF / trustedProxiesList. When tools.proxy.on = true Splunk trusts X-Forwarded-* from any immediate client. Combine with acceptFrom on web.conf [settings] AND server.conf [httpServer] to lock down the trust boundary.
  • Splunkd 8089, the KV store on 8191, appServerPorts on 8065, and the indexer-cluster replication port on 9887 must NEVER be reachable from the public internet. Preflight and validate fail closed if they are.

Architecture the skill assumes

Public Internet
   │
   ▼
CDN / DDoS  (Cloudflare / AWS / Akamai)   ── operator handoff
   │
   ▼
WAF rules   (OWASP CRS, rate limit, geo)  ── operator handoff
   │
   ▼
Reverse proxy (nginx / HAProxy in DMZ)    ── rendered templates
   │  TLS termination + browser headers + return_to / header sanitisation
   ▼
Splunk Search Head + HEC + DMZ Heavy Forwarder
   │  Splunkd / KV / replication NEVER public.
   ▼
Indexer cluster (private)

Agent behavior — credentials

Never paste secrets into chat or pass them on argv. The skill consumes file paths for every secret it needs and never embeds secret values in rendered output:

bash
bash skills/shared/scripts/write_secret_file.sh /tmp/splunk_admin_password
bash skills/shared/scripts/write_secret_file.sh /tmp/splunk_pass4symmkey
bash skills/shared/scripts/write_secret_file.sh /tmp/splunk_ssl_key_password
bash skills/shared/scripts/write_secret_file.sh /tmp/splunk_idp_signing_cert

Pass them in via --admin-password-file, --pass4symmkey-file, --ssl-key-password-file, etc.

For non-secret values (FQDN, IPs, indexes, role names) use template.example.

Quick start

Render the full hardening bundle for a single search head with proxy in front, public Splunk Web only:

bash
bash skills/splunk-enterprise-public-exposure-hardening/scripts/setup.sh \
  --phase render \
  --topology single-search-head \
  --public-fqdn splunk.example.com \
  --proxy-cidr 10.0.10.0/24 \
  --enable-web true \
  --enable-hec false \
  --enable-s2s false

Render with HEC and DMZ heavy forwarder for ingest:

bash
bash skills/splunk-enterprise-public-exposure-hardening/scripts/setup.sh \
  --phase render \
  --topology shc-with-hec-and-hf \
  --public-fqdn splunk.example.com \
  --hec-fqdn hec.example.com \
  --proxy-cidr 10.0.10.0/24 \
  --enable-web true \
  --enable-hec true \
  --enable-s2s true \
  --hec-mtls true \
  --indexer-cluster-cidr 10.0.20.0/24

Run preflight against a live host (read-only checks; refuses to apply):

bash
bash skills/splunk-enterprise-public-exposure-hardening/scripts/setup.sh \
  --phase preflight \
  --public-fqdn splunk.example.com \
  --public-ca-file /etc/pki/ca-trust/source/anchors/public-proxy-ca.pem \
  --external-probe-cmd "ssh probe@bastion.example.com nc -zv"

Omit --public-ca-file for a publicly trusted certificate. Public probes use system trust by default and always verify the certificate chain and FQDN; there is no insecure curl -k production-pass path. The external probe value is parsed once as POSIX-style argv, never evaluated as shell source, and the target FQDN and port are appended as separate arguments. Shell metacharacters and control characters are rejected.

Apply the hardening app on a search head (mutates Splunk; requires the explicit accept flag):

bash
bash skills/splunk-enterprise-public-exposure-hardening/scripts/setup.sh \
  --phase apply \
  --apply-target search-head \
  --public-fqdn splunk.example.com \
  --accept-public-exposure \
  --pass4symmkey-file /tmp/splunk_pass4symmkey

Validate live state post-apply:

bash
bash skills/splunk-enterprise-public-exposure-hardening/scripts/validate.sh \
  --public-fqdn splunk.example.com

What it renders

Under the project root in splunk-public-exposure-rendered/:

  • splunk/apps/000_public_exposure_hardening/ — Splunk app with app.conf, web.conf, server.conf, inputs.conf, outputs.conf, authentication.conf, authorize.conf, limits.conf, commands.conf, and metadata/{default,local}.meta. Drop into $SPLUNK_HOME/etc/apps/ (or the SHC deployer's shcluster/apps/).
  • splunk/apply-search-head.sh, apply-hec-tier.sh, apply-s2s-receiver.sh, apply-heavy-forwarder.sh, apply-deployer.sh, apply-cluster-manager.sh, apply-license-manager.sh — role-aware local-host scripts selected with --apply-target. Search-head, HEC-tier, and heavy-forwarder targets mutate directly. S2S-receiver and cluster-manager targets exit nonzero and delegate to the indexer-cluster workflow so a single peer is never restarted and an undocumented secret-file CLI flag is never invented. Deployer stages the bundle then exits nonzero pending a secret-safe SHC bundle handoff; license-manager also delegates and exits nonzero. SHC topologies reject direct search-head/hec-tier mutation and require the deployer path.
  • splunk/transaction-helpers.sh — shared direct-apply transaction engine. It securely reads secret files through no-follow descriptors, stages in a private directory on the target filesystem, snapshots the prior app and splunk-launch.conf, validates btool before restart, and restores plus restart-verifies the exact prior state on any error or signal.
  • splunk/rotate-pass4symmkey.sh, rotate-splunk-secret.sh — secret rotation helpers that read keys from local files only.
  • splunk/certificates/verify-certs.sh, generate-csr-template.sh — operator-side cert helpers.
  • proxy/nginx/{splunk-web.conf,splunk-hec.conf} — production nginx vhosts with TLS, HSTS, CSP, header sanitisation, return_to allowlist, per-IP rate limit, streaming-safe timeouts, WebSocket plumbing.
  • proxy/haproxy/{splunk-web.cfg,splunk-hec.cfg} — HAProxy equivalents using option http-server-close (NOT option httpclose).
  • proxy/firewall/{iptables.rules,nftables.conf,firewalld.xml,aws-sg.json} — internet-edge firewall snippets that explicitly drop 8089, 8191, 8065, 9887, plus direct 9997 and 8088 from the public CIDR.
  • handoff/ — Markdown checklists for WAF (Cloudflare / AWS / F5+Imperva), SAML IdP, Duo MFA, certificate procurement, SOC alerting, backup-and-restore, splunk.secret incident response, compliance.
  • preflight.sh and validate.sh — fail-closed scripts the operator runs from this directory.
  • README.md and metadata.json — full documentation and rendered configuration manifest.

Phases

  • render (default) — produce the reviewable rendered directory.
  • preflight — render then run the 20-step preflight against the live host (default-cert detection, SVD floor, splunk.secret posture, pass4SymmKey rotation, capability hygiene, firewall reachability, TLS scan, header-injection probe, return_to redirect probe, cookie scrubbing, etc.). Refuses to mark the deployment ready when any check fails.
  • apply — render, run the fail-closed live preflight, then run the apply script for the role you specified. Requires --accept-public-exposure (a single-flag acknowledgement that you are about to bind Splunk to a public-facing FQDN). Search-head, HEC-tier, and heavy-forwarder applies are transactional and roll back both disk state and the Splunk restart if any btool, restart, encryption, or post-restart readback check fails. Preflight and validation treat failed, empty, missing, or unexpected btool output as a failure; role_admin.never_lockout must be disabled, and authType must be a recognized non-Scripted value matching the render.
  • validate — render then run the live validation probes.
  • all — render + preflight + apply + validate for direct local targets, gated by --accept-public-exposure. Delegated cluster/license targets stop nonzero at their handoff, so validation must run after the child workflow.

SVD floor (refuses to apply below this)

SeriesRequired versionSource
10.6.x10.6.0Current 10.6 GA baseline; use latest 10.6 maintenance and review future advisories
10.4.x10.4.0Not affected by SVD-2026-0304/0303 at GA; use latest 10.4.x maintenance
10.2.x10.2.2SVD-2026-0304, SVD-2026-0303
10.0.x10.0.5SVD-2026-0303, SVD-2025-1006
9.4.x9.4.10SVD-2025-1006, SVD-2025-1203
9.3.x9.3.11SVD-2025-1006, SVD-2025-1203

Floor lives in references/cve-svd-floor.json and ships embedded in the renderer; --svd-floor-file can override.

Cross-skill handoff matrix

The skill consumes — does not duplicate — these. When you also use one of the adjacent skills below, run THIS skill's preflight + validate against the fronting search head, then layer the adjacent skill's hardening on top.

Adjacent skillWhat it ownsWhat this skill provides
splunk-platform-pki-setupFull TLS / PKI lifecycle (Private CA or Public CSR + handoff to Vault PKI / ACME / AD CS / EJBCA), per-component cert distribution across every Splunk surface, FIPS 140-2/140-3 wiring, three TLS algorithm presets, KV-Store dual-EKU enforcement, replication-port TLS migration, SAML SP signing cert, LDAPS trust, cacert.pem alignment, delegated rotation runbookConsumes the cert paths the PKI skill provisions; this skill's preflight refuses to declare a public-exposed SH ready until PKI verify-leaf has returned OK; the PKI skill consumes this skill's --enable-fips / --fips-version semantics rather than redefining
splunk-hec-service-setupHEC token lifecycle, allowed indexes, ACS HEC tokensHEC TLS / mTLS rendering, body-size alignment, proxy vhost, sensitive-path denies
splunk-enterprise-host-setupSplunk host install / cluster bootstrapPreflight refuses unbootstrapped hosts; SVD floor enforcement
splunk-indexer-cluster-setupIndexer cluster bundlepass4SymmKey rotation helper + acceptFrom enforcement for cluster CIDR
splunk-agent-management-setupSHC deployer, server classesHardening app drops into shcluster/apps/; SHC deployer pass4SymmKey rotation
splunk-license-manager-setupLicense manager / peer wiringLicense master 8089 acceptFrom + pass4SymmKey rotation
splunk-cloud-acs-admin-setupSplunk Cloud ACS allowlistsOut of scope — this skill is on-prem only
splunk-federated-search-setupFederation provider/consumer wiringProvider-side acceptFrom + service-account rotation helper (federation auth is NOT pass4SymmKey)
splunk-monitoring-console-setupMonitoring Console distributed configMC integration: forward _audit and platform alerts on hardening drift
splunk-connect-for-syslog-setupSC4S Docker/Helm runtime, syslog TLS listenerIf SC4S delivers via HEC, run THIS skill against the HEC-receiving SH first
splunk-connect-for-snmp-setupSC4SNMP Docker/Helm runtimeSame as SC4S
splunk-mcp-server-setupMCP server install + token issuanceIf MCP is exposed publicly, run THIS skill against the SH fronting it; MCP token policy is owned by the MCP skill
splunk-stream-setupWire data capture stackStream is internal-only; this skill does not apply
splunk-index-lifecycle-smartstore-setupSmartStore S3/GCS/Azure backendOutbound-to-storage; this skill does not apply
splunk-enterprise-security-config (and ES/SOAR/ITSI/UBA/ARI/AA)Premium apps + additional capabilitiesRun THIS skill first; then re-audit role_public_reader against the premium-apps-capability-overlay

References

Read reference.md before any apply. Topical deep dives:

What this skill does NOT do

  • Procure certificates or talk to a CA. (Provides a CSR template + verify-certs.sh.)
  • Push WAF / CDN config to vendor APIs. (Operator-driven via handoff/.)
  • Bootstrap the Splunk host itself — splunk-enterprise-host-setup.
  • Issue HEC tokens — splunk-hec-service-setup.
  • Patch / upgrade Splunk — preflight refuses below the SVD floor and the operator must upgrade first.
  • Implement IdP-side configuration (Okta, Entra, Duo) — handoff docs only.
  • Provide compliance attestation. The skill maps controls (DISA STIG cross-reference) but does not certify PCI / HIPAA / FedRAMP / SOC 2.
  • Configure Splunk Secure Gateway, Splunk Mobile, SC4S, or the Splunk MCP Server for public exposure — each needs its own threat model.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Splunk Enterprise Public Exposure Hardening ?

Use when the user asks to expose Splunk Enterprise on the public internet, harden a Splunk search head against internet exposure, configure TLS / HSTS / CSP / mTLS / per-IP rate limit / DMZ heavy forwarder, lock down splunkd or the KV store, fix splunk.secret / pass4SymmKey defaults, evaluate against the latest SVD floor (10.6.0 / 10.4.0 / 10.2.2 / 10.0.5 / 9.4.10 / 9.3.11), or render nginx / HAProxy / WAF reference configs in front of Splunk. Render, preflight, apply, and validate hardening of an on-prem Splunk Enterprise deployment for public-internet exposure across all four edge surface...

Pourquoi utiliser Splunk Enterprise Public Exposure Hardening sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Splunk Enterprise Public Exposure Hardening se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Splunk Enterprise Public Exposure Hardening dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/chambear2809/splunk-cisco-skills/tree/main/skills/splunk-enterprise-public-exposure-hardening. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Splunk Enterprise Public Exposure Hardening ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Splunk Enterprise Public Exposure Hardening ?

Autant que vous le souhaitez. Vous pouvez utiliser Splunk Enterprise Public Exposure Hardening avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Splunk Enterprise Public Exposure Hardening est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par chambear2809 sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇