> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-codebuild-project-not-configured-with-logging-configuration.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS CodeBuild project not configured with logging configuration

### Synopsis

| Field               | Value                                                           |
| ------------------- | --------------------------------------------------------------- |
| Rule Type           | Detection                                                       |
| Finding Type        | AWS CodeBuild project not configured with logging configuration |
| Finding ID          | 60001456                                                        |
| Generates a Finding | This detection rule also generates a finding                    |
| Severity            | Informational                                                   |
| Category            | CONFIGURATION                                                   |
| Cloud Providers     | AWS                                                             |
| Platform Module     | CSPM                                                            |
| Asset Types         | AWS\_CODEBUILD\_PROJECT                                         |

### Description

AWS CodeBuild projects lacking logging configurations pose a significant security risk. These projects are vulnerable to unauthorized access and malicious activities, hindering incident response and investigation efforts.

CodeBuild, a managed build service, requires proper logging for security monitoring and troubleshooting. Without logging, malicious code injection or unauthorized deployments go undetected, potentially leading to data breaches, system compromises, or deployment of harmful applications. Attackers could exploit this misconfiguration to execute arbitrary code within the build environment.

The impact of this misconfiguration includes compromised build artifacts, data breaches, and disrupted application deployments. Comprehensive logs enable security teams to track activities, detect anomalies, and respond effectively to security incidents. Robust logging provides crucial audit trails and facilitates faster incident response.

To mitigate this risk, configure detailed logging for all CodeBuild projects. Ensure logs capture all build-related events, including input and output data, environment variables, and execution times. Regularly review logs to identify suspicious activity and promptly address any detected anomalies.

### Remediation

1. Sign in to the AWS console. Navigate to the CodeBuild service
2. In the left navigation pane, select 'Build Projects' under 'Build'
3. Go to your AWS CodeBuild project
4. Select the 'Project details' tab, and under the 'Logs' section, select 'Edit'
5. Under the 'Edit Logs' page, based on the requirement, select either 'CloudWatch logs' or 'S3 logs'
6. For CloudWatch logging, provide a log group name
7. For S3 logging, provide the bucket name
8. Click on 'Update logs'.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-codebuild-project-not-configured-with-logging-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
