-
Notifications
You must be signed in to change notification settings - Fork 84
/
aws_credentials_file_example
171 lines (125 loc) · 4.89 KB
/
aws_credentials_file_example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Replace 111111111111 with your target account ID and copy
# as many of these as you'd like to your real ~/.aws/credentials file
[default]
aws_access_key_id = AKIA...
aws_secret_access_key = SECRET...
[privesc1]
role_arn = arn:aws:iam::111111111111:role/privesc1-CreateNewPolicyVersion-role
source_profile = default
[privesc2]
role_arn = arn:aws:iam::111111111111:role/privesc2-SetExistingDefaultPolicyVersion-role
source_profile = default
[privesc3]
role_arn = arn:aws:iam::111111111111:role/privesc3-CreateEC2WithExistingInstanceProfile-role
source_profile = default
[privesc4]
role_arn = arn:aws:iam::111111111111:role/privesc4-CreateAccessKey-role
source_profile = default
[privesc5]
role_arn = arn:aws:iam::111111111111:role/privesc5-CreateLoginProfile-role
source_profile = default
[privesc6]
role_arn = arn:aws:iam::111111111111:role/privesc6-UpdateLoginProfile-role
source_profile = default
[privesc7]
role_arn = arn:aws:iam::111111111111:role/privesc7-AttachUserPolicy-role
source_profile = default
[privesc8]
role_arn = arn:aws:iam::111111111111:role/privesc8-AttachGroupPolicy-role
source_profile = default
[privesc9]
role_arn = arn:aws:iam::111111111111:role/privesc9-AttachRolePolicy-role
source_profile = default
[privesc10]
role_arn = arn:aws:iam::111111111111:role/privesc10-PutUserPolicy-role
source_profile = default
[privesc11]
role_arn = arn:aws:iam::111111111111:role/privesc11-PutGroupPolicy-role
source_profile = default
[privesc12]
role_arn = arn:aws:iam::111111111111:role/privesc12-PutRolePolicy-role
source_profile = default
[privesc13]
role_arn = arn:aws:iam::111111111111:role/privesc13-AddUserToGroup-role
source_profile = default
[privesc14]
role_arn = arn:aws:iam::111111111111:role/privesc14-UpdatingAssumeRolePolicy-role
source_profile = default
[privesc15]
role_arn = arn:aws:iam::111111111111:role/privesc15-PassExistingRoleToNewLambdaThenInvoke-role
source_profile = default
[privesc16]
role_arn = arn:aws:iam::111111111111:role/privesc16-PassRoleToNewLambdaThenTriggerWithNewDynamo-role
source_profile = default
[privesc17]
role_arn = arn:aws:iam::111111111111:role/privesc17-EditExistingLambdaFunctionWithRole-role
source_profile = default
[privesc18]
role_arn = arn:aws:iam::111111111111:role/privesc18-PassExistingRoleToNewGlueDevEndpoint-role
source_profile = default
[privesc19]
role_arn = arn:aws:iam::111111111111:role/privesc19-UpdateExistingGlueDevEndpoint-role
source_profile = default
[privesc20]
role_arn = arn:aws:iam::111111111111:role/privesc20-PassExistingRoleToCloudFormation-role
source_profile = default
[privesc21]
role_arn = arn:aws:iam::111111111111:role/privesc21-PassExistingRoleToNewDataPipeline-role
source_profile = default
[privesc-assumerole]
role_arn = arn:aws:iam::111111111111:role/privesc-AssumeRole-starting-role
source_profile = default
[privesc-ssm-command]
role_arn = arn:aws:iam::111111111111:role/privesc-ssmSendCommand-role
source_profile = default
[privesc-ssm-session]
role_arn = arn:aws:iam::111111111111:role/privesc-ssmStartSession-role
source_profile = default
[privesc-instanceConnect]
role_arn = arn:aws:iam::111111111111:role/privesc-ec2InstanceConnect-role
source_profile = default
[privesc-sageNotebook]
role_arn = arn:aws:iam::111111111111:role/privesc-sageMakerCreateNotebookPassRole-role
source_profile = default
[privesc-sageTraining]
role_arn = arn:aws:iam::111111111111:role/privesc-sageMakerCreateTrainingJobPassRole-role
source_profile = default
[privesc-sageProcessing]
role_arn = arn:aws:iam::111111111111:role/privesc-sageMakerCreateProcessingJobPassRole-role
source_profile = default
[privesc-sageUpdateURL]
role_arn = arn:aws:iam::111111111111:role/privesc-sageMakerCreatePresignedNotebookURL-role
source_profile = default
[privesc-codeBuildProject]
role_arn = arn:aws:iam::111111111111:role/privesc-codeBuildCreateProjectPassRole-role
source_profile = default
[privesc-cfUpdateStack]
role_arn = arn:aws:iam::111111111111:role/privesc-CloudFormationUpdateStack-role
source_profile = default
[fp1]
role_arn = arn:aws:iam::111111111111:role/fp1-allow-and-deny-role
source_profile = default
[fp2]
role_arn = arn:aws:iam::111111111111:role/fp2-allow-and-deny-multiple-policies-role
source_profile = default
[fp3]
role_arn = arn:aws:iam::111111111111:role/fp3-deny-iam-role
source_profile = default
[fp4]
role_arn = arn:aws:iam::111111111111:role/fp4-nonExploitableResourceConstraint-role
source_profile = default
[fp5]
role_arn = arn:aws:iam::111111111111:role/fp5-nonExploitableConditionConstraint-role
source_profile = default
[fn1]
role_arn = arn:aws:iam::111111111111:role/fn1-privesc3-partial-role
source_profile = default
[fn2]
role_arn = arn:aws:iam::111111111111:role/fn2-exploitableResourceConstraint-role
source_profile = default
[fn3]
role_arn = arn:aws:iam::111111111111:role/fn3-exploitableConditionConstraint-role
source_profile = default
[fn4]
role_arn = arn:aws:iam::111111111111:role/fn4-exploitableNotAction-role
source_profile = default