OpenParable
Skip to content
← Back to skills

Cis Apache24 5.12

DevOps & Security
cis-apache24-5.12

Cis Apache24 5.12 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ensure Access to .svn Files Is Restricted

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Apache_HTTP_Server/CIS_Apache_HTTP_Server_2.4_Benchmark_v2.3.0/cis-apache24-5.12/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-apache24-5-12, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Ensure Access to .svn Files Is Restricted (Manual)

Profile Applicability

Level 1

Description

Restrict access to any files beginning with .svn using the FilesMatch directive.

Rationale

More and more websites track their changes in a SVN repository we see a lot of attackers search for .svn directories. Access to .svn directories should be restricted. These files should be placed in the document root, but, in the event they are, the FilesMatch directive can be used to prevent them from being viewed by web clients.

Impact

.svn files are not accessible.

Audit Procedure

Perform the following steps to determine if the recommended state is implemented:

Verify that a FilesMatch directive similar to the one below is present in the apache configuration and not commented out. The deprecated Deny from All directive may be used instead of the Require directive.

<DirectoryMatch "/\.svn">
    Require all denied
</DirectoryMatch>

Remediation

Perform the following to implement the recommended state:

Add or modify the following lines in the Apache configuration file at the server configuration level.

<DirectoryMatch "/\.svn">
    Require all denied
</DirectoryMatch>

Default Value

This is not set by default

References

  1. https://httpd.apache.org/docs/2.4/mod/core.html#filesmatch

CIS Controls

v8:

  • 9.4 Restrict Unnecessary or Unauthorized Browser and Email Client Extensions
    • Restrict, either through uninstalling or disabling, any unauthorized or unnecessary browser or email client plugins, extensions, and add-on applications.

v7:

  • 18.2 Ensure Explicit Error Checking is Performed for All In-house Developed Software
    • For in-house developed software, ensure that explicit error checking is performed and documented for all input, including for size, data type, and acceptable ranges or formats.