We are submitting this issue to notify you of an IAM policy analysis we conducted based on an October 2021 copy of the connorads/lockbot repository. We recognize that your application has continued to change since then, but wanted to share our results with you.
Analyzing serverless.yml in https://github.com/connorads/lockbot/tree/c4c4148, we determined that the provider-level iamRolesStatements definition enabled over-privileged access to your dynamodb tables. By looking at the API calls that were actually being made by your application at that time, we determined that the following changes would reduce unnecessary privilege while still permitting the application to function:
High level overview:
The slack-handler function only needed access to the installationsTable and accessTokensTable, the api-handler function needed access to the resourcesTable and accessTokensTable, and the swagger function did not need access to any dynamodb tables.
Your IAM policy was studied as part of a research project that was conducted jointly by researchers at the North Carolina State University and the University of Illinois at Urbana-Champaign. We developed an algorithm that leveraged graph reachability analysis to inspect privilege in serverless applications. This work has been accepted to appear at the 2024 Web Conference (Paper Title: “GRASP: Hardening Serverless Applications through Graph Reachability Analysis of Security Policies”). We will be discussing the results from our 2021 analysis of your application as part of this work, but will be sure to note that the policy has been updated since then.
If you’d like, we’d be happy to update our analysis to reflect the present state of your application. Do let us know if you have any thoughts or feedback.
Best,
Pubali Datta (co-authors: Isaac Polinsky, Adam Bates, Will Enck)
We are submitting this issue to notify you of an IAM policy analysis we conducted based on an October 2021 copy of the
connorads/lockbot
repository. We recognize that your application has continued to change since then, but wanted to share our results with you.Analyzing
serverless.yml
in https://github.com/connorads/lockbot/tree/c4c4148, we determined that the provider-leveliamRolesStatements
definition enabled over-privileged access to your dynamodb tables. By looking at the API calls that were actually being made by your application at that time, we determined that the following changes would reduce unnecessary privilege while still permitting the application to function:Note: the following policy changes use the https://github.com/functionalone/serverless-iam-roles-per-function serverless plugin to create detailed per-function iam policies.
High level overview: The
slack-handler
function only needed access to theinstallationsTable
andaccessTokensTable
, theapi-handler
function needed access to theresourcesTable
andaccessTokensTable
, and theswagger
function did not need access to any dynamodb tables.Your IAM policy was studied as part of a research project that was conducted jointly by researchers at the North Carolina State University and the University of Illinois at Urbana-Champaign. We developed an algorithm that leveraged graph reachability analysis to inspect privilege in serverless applications. This work has been accepted to appear at the 2024 Web Conference (Paper Title: “GRASP: Hardening Serverless Applications through Graph Reachability Analysis of Security Policies”). We will be discussing the results from our 2021 analysis of your application as part of this work, but will be sure to note that the policy has been updated since then.
If you’d like, we’d be happy to update our analysis to reflect the present state of your application. Do let us know if you have any thoughts or feedback.
Best, Pubali Datta (co-authors: Isaac Polinsky, Adam Bates, Will Enck)