{"id":1058919,"name":"@middy/function-shield","ecosystem":"npm","description":"Hardens AWS Lambda execution environment","homepage":"https://github.com/middyjs/middy#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/middyjs/middy","keywords_array":["Lambda","Middleware","Serverless","Framework","AWS","AWS Lambda","Middy","Security","Hardening"],"namespace":"middy","versions_count":68,"first_release_published_at":"2018-12-23T13:28:15.895Z","latest_release_published_at":"2021-01-17T19:34:46.667Z","latest_release_number":"1.5.2","last_synced_at":"2026-04-26T04:22:10.095Z","created_at":"2022-04-07T20:27:22.814Z","updated_at":"2026-04-26T04:22:10.095Z","registry_url":"https://www.npmjs.com/package/@middy/function-shield","install_command":"npm install @middy/function-shield","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.5.2"}},"repo_metadata":{"id":37484119,"uuid":"99244740","full_name":"middyjs/middy","owner":"middyjs","description":"🛵 The stylish Node.js middleware engine for AWS Lambda 🛵","archived":false,"fork":false,"pushed_at":"2026-04-19T11:06:25.000Z","size":65182,"stargazers_count":3897,"open_issues_count":6,"forks_count":399,"subscribers_count":34,"default_branch":"main","last_synced_at":"2026-04-19T19:33:36.883Z","etag":null,"topics":["aws","aws-lambda","aws-powertools","aws-serverless","framework","javascript","lambda","lambda-handler","middleware","middy","node","nodejs","powertools","serverless","serverless-applications","serverless-express","serverless-framework","typescript"],"latest_commit_sha":null,"homepage":"https://middy.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/middyjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":"docs/GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["willfarrell","lmammino"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-08-03T14:59:07.000Z","updated_at":"2026-04-18T22:17:16.000Z","dependencies_parsed_at":"2022-07-10T02:00:39.841Z","dependency_job_id":"449381ac-18f4-4b8e-946f-feef7499e79f","html_url":"https://github.com/middyjs/middy","commit_stats":{"total_commits":1897,"total_committers":199,"mean_commits":9.532663316582914,"dds":0.3500263574064312,"last_synced_commit":"9126e6ff2d75eaac9338bfe652f7f8904f4356d0"},"previous_names":["plnt9/middy"],"tags_count":409,"template":false,"template_full_name":null,"purl":"pkg:github/middyjs/middy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middyjs%2Fmiddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middyjs%2Fmiddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middyjs%2Fmiddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middyjs%2Fmiddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/middyjs","download_url":"https://codeload.github.com/middyjs/middy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middyjs%2Fmiddy/sbom","scorecard":{"id":112145,"data":{"date":"2025-08-14T19:01:17Z","repo":{"name":"github.com/middyjs/middy","commit":"9bdaef316bc54afcaae8524525ec2a8715bc70f9"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":9.7,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:80","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:112","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:21","Info: jobLevel 'contents' permission set to 'read': .github/workflows/test-sast.yml:47","Info: jobLevel 'actions' permission set to 'read': .github/workflows/test-sast.yml:46","Info: topLevel permissions set to 'read-all': .github/workflows/ossf-scorecard.yml:19","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-dast.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-dco.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-lint.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-pref.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-sast.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-types.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-unit.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/website-publish.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/website-test.yml:12"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":9,"reason":"dependency not pinned by hash detected -- score normalized to 9","details":["Warn: npmCommand not pinned by hash: .github/workflows/test-sast.yml:38","Info:  39 out of  39 GitHub-owned GitHubAction dependencies pinned","Info:   4 out of   4 third-party GitHubAction dependencies pinned","Info:   8 out of   9 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"CII-Best-Practices","score":7,"reason":"badge detected: Silver","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:106"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Branch-Protection","score":10,"reason":"branch protection is fully enabled on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Info: required approving review count is 2 on branch 'main'","Info: codeowner review is required on branch 'main'","Info: 'last push approval' is required to merge on branch 'main'","Info: 'up-to-date branches' is required to merge on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: JavaScriptPropertyBasedTesting integration found: packages/appconfig/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/cloudformation-response/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/cloudformation-router/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/cloudwatch-metrics/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/core/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/do-not-wait-for-empty-event-loop/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/dynamodb/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/error-logger/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/event-normalizer/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-content-encoding/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-content-negotiation/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-cors/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-error-handler/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-event-normalizer/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-header-normalizer/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-json-body-parser/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-multipart-body-parser/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-partial-response/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-response-serializer/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-router/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-security-headers/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-urlencode-body-parser/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/http-urlencode-path-parser/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/input-output-logger/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/rds-signer/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/s3-object-response/index.fuzz.js:4","Info: JavaScriptPropertyBasedTesting integration found: packages/s3/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/secrets-manager/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/service-discovery/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/sqs-partial-batch-failure/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/ssm/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/sts/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/validator/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/warmup/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/ws-json-body-parser/index.fuzz.js:2","Info: JavaScriptPropertyBasedTesting integration found: packages/ws-response/index.fuzz.js:7","Info: JavaScriptPropertyBasedTesting integration found: packages/ws-router/index.fuzz.js:2"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"CI-Tests","score":10,"reason":"8 out of 8 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"Contributors","score":10,"reason":"project has 28 contributing companies or organizations","details":["Info: found contributions from: FullStackBulletin, GlobantUy, Oryzone, PartidoDigital, QwikDev, augustsn, aws, aws-samples, awsbites, empathycom, fastify, fourtheorem, global cyber alliance, gqty-dev, js-uy, kushki, lint-staged, lucpod, middyjs, nodejs-design-patterns-book, qwikifiers, rust-italia, s-group-dev, serverless-heaven, serverlessdays-dublin, standards, typeorm, ucudal"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}}]},"last_synced_at":"2025-08-15T12:32:27.213Z","repository_id":37484119,"created_at":"2025-08-15T12:32:27.213Z","updated_at":"2025-08-15T12:32:27.213Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32127004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"tags":[]},"repo_metadata_updated_at":"2026-04-24T21:21:51.748Z","dependent_packages_count":2,"downloads":404,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":13.173099850739034,"dependent_repos_count":10.295976646711454,"dependent_packages_count":8.833550931946979,"stargazers_count":1.548553915264125,"forks_count":1.9042764606916,"docker_downloads_count":null,"average":7.151091561070638},"purl":"pkg:npm/%40middy/function-shield","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@middy/function-shield","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@middy/function-shield","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@middy/function-shield/dependencies","status":null,"funding_links":["https://github.com/sponsors/willfarrell","https://github.com/sponsors/lmammino"],"critical":null,"issue_metadata":{"last_synced_at":"2025-10-21T19:59:02.316Z","issues_count":213,"pull_requests_count":476,"avg_time_to_close_issue":2887551.6052631577,"avg_time_to_close_pull_request":441109.8620689655,"issues_closed_count":190,"pull_requests_closed_count":377,"pull_request_authors_count":85,"issue_authors_count":151,"avg_comments_per_issue":3.3051643192488265,"avg_comments_per_pull_request":0.7836134453781513,"merged_pull_requests_count":224,"bot_issues_count":0,"bot_pull_requests_count":229,"past_year_issues_count":42,"past_year_pull_requests_count":316,"past_year_avg_time_to_close_issue":1362397.8076923077,"past_year_avg_time_to_close_pull_request":402451.2622222222,"past_year_issues_closed_count":26,"past_year_pull_requests_closed_count":225,"past_year_pull_request_authors_count":24,"past_year_issue_authors_count":32,"past_year_avg_comments_per_issue":1.9523809523809523,"past_year_avg_comments_per_pull_request":0.5031645569620253,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":212,"past_year_merged_pull_requests_count":110,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/middyjs%2Fmiddy/issues","maintainers":[{"login":"willfarrell","count":89,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/willfarrell"},{"login":"lmammino","count":20,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/lmammino"}],"active_maintainers":[{"login":"willfarrell","count":58,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/willfarrell"},{"login":"lmammino","count":3,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/lmammino"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@middy%2Ffunction-shield/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@middy%2Ffunction-shield/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@middy%2Ffunction-shield/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@middy%2Ffunction-shield/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@middy%2Ffunction-shield/codemeta","maintainers":[{"uuid":"lmammino","login":"lmammino","name":null,"email":"lucianomammino@gmail.com","url":null,"packages_count":97,"html_url":"https://www.npmjs.com/~lmammino","role":null,"created_at":"2022-11-20T19:37:35.943Z","updated_at":"2022-11-20T19:37:35.943Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/lmammino/packages"},{"uuid":"middyjs","login":"middyjs","name":null,"email":"lucianomammino+middy@gmail.com","url":null,"packages_count":46,"html_url":"https://www.npmjs.com/~middyjs","role":null,"created_at":"2022-11-20T19:37:35.978Z","updated_at":"2022-11-20T19:37:35.978Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/middyjs/packages"},{"uuid":"willfarrell","login":"willfarrell","name":null,"email":"will.farrell@gmail.com","url":null,"packages_count":117,"html_url":"https://www.npmjs.com/~willfarrell","role":null,"created_at":"2022-11-20T19:37:35.990Z","updated_at":"2022-11-20T19:37:35.990Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/willfarrell/packages"}]}