> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/cloud/aws/undefined-1/codecommit.md).

# CodeCommit

{% hint style="info" %}
CodeCommit은 2024년 7월 25일부터 기존에 등록한 고객에게만 지원되는 서비스입니다.
{% endhint %}

codecommit은 AWS에서 생성한 리포지터리를 git cli를 통해 리포지터리를 관리할 수 있는 서비스입니다.

## Abuse

<pre class="language-bash"><code class="lang-bash"><strong># ssh 비밀키가 있거나 aws 자격증명이 있을 때 리포지터리 복제
</strong>git clone https://git-codecommit.'&#x3C;region>'.amazonaws.com/v1/repos/'&#x3C;repository-name>'
git clone ssh://git-codecommit.'&#x3C;region>'.amazonaws.com/v1/repos/'&#x3C;repository-name>'

<strong># 리포지터리 열거 (codecommit:ListRepositories 권한 필요)
</strong>aws codecommit list-repositories

<strong># 특정 리포지터리의 정보 열거 (codecommit:GetRepository 권한 필요)
</strong>aws codecommit get-repository --repository-name '&#x3C;repository-name>'

<strong># 특정 리포지터리의 브랜치 목록 열거 (codecommit:ListBranches 권한 필요)
</strong>aws codecommit list-branches --repository-name '&#x3C;repository-name>'

<strong># 특정 브랜치 정보 열거 (codecommit:GetBranch 권한 필요)
</strong>aws codecommit get-branch --repository-name '&#x3C;repository-name>' --branch-name '&#x3C;branch-name>'
</code></pre>
