AWS - DataPipeline, CodePipeline & CodeCommit Enum

제로부터 영웅이 될 때까지 AWS 해킹을 배우세요 htARTE (HackTricks AWS Red Team Expert)!

HackTricks를 지원하는 다른 방법:

DataPipeline

AWS Data Pipeline은 규모에 맞게 데이터에 대한 액세스, 변환 및 효율적인 전송을 용이하게 하는 데 설계되었습니다. 다음 작업을 수행할 수 있습니다:

  1. 저장된 데이터에 액세스: 다양한 AWS 서비스에 있는 데이터에 원활하게 액세스할 수 있습니다.

  2. 규모에 맞게 변환 및 처리: 대규모 데이터 처리 및 변환 작업을 효율적으로 처리합니다.

  3. 결과를 효율적으로 전송: 처리된 데이터를 다음과 같은 여러 AWS 서비스로 효율적으로 전송할 수 있습니다:

  • Amazon S3

  • Amazon RDS

  • Amazon DynamoDB

  • Amazon EMR

요컨대, AWS Data Pipeline은 지정된 간격에서 서로 다른 AWS 컴퓨팅 및 저장 서비스 및 온프레미스 데이터 원본 간의 데이터 이동 및 처리를 간소화합니다.

열거

aws datapipeline list-pipelines
aws datapipeline describe-pipelines --pipeline-ids <ID>
aws datapipeline list-runs --pipeline-id <ID>
aws datapipeline get-pipeline-definition --pipeline-id <ID>

권한 상승

다음 페이지에서는 datapipeline 권한을 남용하여 권한을 상승하는 방법을 확인할 수 있습니다:

pageAWS - Datapipeline Privesc

CodePipeline

AWS CodePipeline은 완전히 관리되는 지속적인 전달 서비스로, 빠르고 신뢰할 수 있는 응용 프로그램 및 인프라 업데이트를 위해 릴리스 파이프라인을 자동화하는 데 도움을 줍니다. CodePipeline은 빌드, 테스트 및 배포 단계를 자동화하며, 코드 변경이 있을 때마다 정의한 릴리스 모델에 따라 릴리스 프로세스를 실행합니다.

열거

aws codepipeline list-pipelines
aws codepipeline get-pipeline --name <pipeline_name>
aws codepipeline list-action-executions --pipeline-name <pl_name>
aws codepipeline list-pipeline-executions --pipeline-name <pl_name>
aws codepipeline list-webhooks
aws codepipeline get-pipeline-state --name <pipeline_name>

권한 상승

다음 페이지에서는 권한 상승을 위해 codepipeline 권한을 남용하는 방법을 확인할 수 있습니다:

pageAWS - Codepipeline Privesc

CodeCommit

이것은 버전 관리 서비스로, 아마존에서 호스팅 및 완전히 관리되며, 데이터(문서, 이진 파일, 소스 코드)를 비공개로 저장하고 클라우드에서 관리하는 데 사용할 수 있습니다.

이것은 사용자가 Git을 알 필요가 없고 자체 소스 제어 시스템을 관리할 필요가 없거나 인프라를 확장하거나 축소할 필요가 없도록합니다. Codecommit은 Git에서 찾을 수 있는 모든 표준 기능을 지원하므로 사용자의 현재 Git 기반 도구와 원활하게 작동합니다.

열거

# Repos
aws codecommit list-repositories
aws codecommit get-repository --repository-name <name>
aws codecommit get-repository-triggers --repository-name <name>
aws codecommit list-branches --repository-name <name>
aws codecommit list-pull-requests --repository-name <name>

# Approval rules
aws codecommit list-approval-rule-templates
aws codecommit get-approval-rule-template --approval-rule-template-name <name>
aws codecommit list-associated-approval-rule-templates-for-repository --repository-name <name>

# Get & Put files
## Get a file
aws codecommit get-file --repository-name backend-api --file-path app.py
## Put a file
aws codecommit get-branch --repository-name backend-api --branch-name master
aws codecommit put-file --repository-name backend-api --branch-name master --file-content fileb://./app.py --file-path app.py --parent-commit-id <commit-id>

# SSH Keys & Clone repo
## Get codecommit keys
aws iam list-ssh-public-keys #User keys for CodeCommit
aws iam get-ssh-public-key --user-name <username> --ssh-public-key-id <id> --encoding SSH #Get public key with metadata
# The previous command will give you the fingerprint of the ssh key
# With the next command you can check the fingerprint of an ssh key and compare them
ssh-keygen -f .ssh/id_rsa -l -E md5

# Clone repo
git clone ssh://<SSH-KEY-ID>@git-codecommit.<REGION>.amazonaws.com/v1/repos/<repo-name>

참고 자료

제로부터 영웅이 될 때까지 AWS 해킹 배우기 htARTE (HackTricks AWS Red Team Expert)!

HackTricks를 지원하는 다른 방법:

最終更新