MCPcopy Create free account
hub / github.com/crashappsec/github-analyzer / UserPermissionStats

Function UserPermissionStats

pkg/issue/issue.go:171–190  ·  view source on GitHub ↗
(user string, permissions []string)

Source from the content-addressed store, hash-verified

169}
170
171func UserPermissionStats(user string, permissions []string) Issue {
172 return Issue{
173 ID: STATS_USER_PERM,
174 Name: AvailableChecks[STATS_USER_PERM],
175 Severity: severity.Informational,
176 Category: category.LeastPrivilege,
177 Description: fmt.Sprintf(
178 "User '%s' %v",
179 user,
180 strings.Join(permissions, ", and "),
181 ),
182 Resources: []resource.Resource{
183 {
184 ID: user,
185 Kind: resource.UserAccount,
186 },
187 },
188 Remediation: "Please examine if the permissions for the given user match your expectations",
189 }
190}
191
192func ApplicationRestrictionsDisabled(org string) Issue {
193 return Issue{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected