Commit 8caa192
New attack technique: Invoke Bedrock Model (#581)
* New attack technique: Invoke Bedrock Model
* Generate docs
* Use context.Background() instead of context.TODO()
* Simplify error handling logic
* Rename wrapper to be a package-visible struct only
* added detection recommendations
* fixed detection
* fixed detection
* fixed detection
* autogenerate docs
* Added call to GetFoundationModelAvailability
* Updated docs, including the Permiso article
* Add Permiso ref
* Error handling and avoid using context.TODO()
* Autogen docs
* Added calls to ListFoundationModelAgreementOffers, CreateFoundationModelAgreement, PutFoundationModelEntitlement
* changed idempotent to false
* Autogen docs
* Rework Bedrock attack
* autogenerate docs
* only create use-case and model agreement once per account
* Update docs
* Update docs and refactor signature functions
* Better error descriptions and remove incorrect status code check
* Refactor methods inside a struct
* Add detonation logs
* Revert unnecessary Go version changes
* Use go 1.21 in CI
* Fix CI
* Fix base Docker image
* Make final Stratus binary smaller by removing debug symbols
* Upgrade staticcheck
* Attempt using staticcheck 2023.1.4
* Install the appropriate Go version for staticcheck
* allow raw.githubusercontent.com network call in staticcheck CI
* Fix SAST findings
---------
Co-authored-by: Christophe Tafani-Dereeper <[email protected]>1 parent 49c50c4 commit 8caa192
File tree
19 files changed
+1949
-32
lines changed- .github/workflows
- docs
- attack-techniques
- AWS
- detonation-logs
- v2
- cmd/stratus
- internal
- attacktechniques
- aws/impact/bedrock-invoke-model
- utils
19 files changed
+1949
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
| 40 | + | |
44 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments