Benign python Download

identity-client.py

urlopen consumes constructed urllib RequestActions OIDC credential request env names
SHA-256940039013e8d677ec873fd2a5326a48cae3e1db9972bf5326efeba72fb6a2676

Evidence

imports os lines 1–7
1import os, urllib.request
2endpoint = os.getenv('ACTIONS_ID_TOKEN_REQUEST_URL')
3request = urllib.request.Request(endpoint + '&audience=api://AzureADTokenExchange', headers={'Authorization': 'Bearer ' + os.getenv('ACTIONS_ID_TOKEN_REQUEST_TOKEN', '')})
4response = urllib.request.urlopen(request).read()
5endpoint = os.getenv('IDENTITY_ENDPOINT')
6request = urllib.request.Request(endpoint + '?api-version=2019-08-01&resource=https://management.azure.com/', headers={'X-IDENTITY-HEADER': os.getenv('IDENTITY_HEADER', '')})
7response = urllib.request.urlopen(request).read()

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.