Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Policy violation Binary Artifacts #200

Closed
allstar-app bot opened this issue Mar 23, 2022 · 7 comments
Closed

Security Policy violation Binary Artifacts #200

allstar-app bot opened this issue Mar 23, 2022 · 7 comments
Labels

Comments

@allstar-app
Copy link

allstar-app bot commented Mar 23, 2022

This issue was automatically created by Allstar.

Security Policy Violation
Project is out of compliance with Binary Artifacts policy: binaries present in source code

Rule Description
Binary Artifacts are an increased security risk in your repository. Binary artifacts cannot be reviewed, allowing the introduction of possibly obsolete or maliciously subverted executables. For more information see the Security Scorecards Documentation for Binary Artifacts.

Remediation Steps
To remediate, remove the generated executable artifacts from the repository.

Artifacts Found

  • ClassySharkWS/gradle/wrapper/gradle-wrapper.jar
  • third_party/asmdex-1.0.jar
  • third_party/java-binutils.jar
  • third_party/util-2.0.6.jar

Additional Information
This policy is drawn from Security Scorecards, which is a tool that scores a project's adherence to security best practices. You may wish to run a Scorecards scan directly on this repository for more details.


Allstar has been installed on all Google managed GitHub orgs. Policies are gradually being rolled out and enforced by the GOSST and OSPO teams. Learn more at http://go/allstar

This issue will auto resolve when the policy is in compliance.

Issue created by Allstar. See https://github.com/ossf/allstar/ for more information. For questions specific to the repository, please contact the owner or maintainer.

@allstar-app allstar-app bot added the allstar label Mar 23, 2022
@yijigu7745
Copy link

yijigu7745 commented Mar 23, 2022 via email

@borisf
Copy link
Collaborator

borisf commented Mar 24, 2022

Done, removed all the jars

@borisf borisf closed this as completed Mar 24, 2022
@anantshri
Copy link
Contributor

@borisf you have broken the build process coz of this action #202 please suggest alternative ways in which packages an be built.

@borisf
Copy link
Collaborator

borisf commented Jul 14, 2022

Thanks Anant,

Removing jars is our policy, thus we need to think about ways to overcome. Open for suggestions.

@anantshri
Copy link
Contributor

I will be honest and brutal here

  1. Adhering to policy for the sake of adherence is total BS in my humble opinion
  2. lets look at how others have handled the same issue
    example
    Security Policy violation Binary Artifacts accompanist#1101: added exception
    Security Policy violation Binary Artifacts charts#757 : automagically approved even though the file exists
    Security Policy violation Binary Artifacts android-fhir#1253 : went the exception way
  3. do check Feature: provide an ignore list for Binary-Artifact check in GitHub action ossf/scorecard#1270

With that said I can understand why such a policy will exist, and I am totally in favour of implementing such policy long term. However here is the scenario right now.
a. Project claims to be opensource
b. Project provides jar file as final artifact
c. Project claims to have a compilation menthod (gradlew) which is non functional as jars are referenced in it without being present. https://github.com/google/android-classyshark/blob/master/ClassySharkWS/build.gradle#L30
d. There is no way a user can obtain jar or compile the project.

I see a few way forward.
i) add exceptions restore jars and continue running the project.
ii) remove all local jar references and make project work without local jars
iii) clearly mention that this project is only code visible but is not compilable by outsiders and outside contributions might not be acceptable or desired. (if anyone cant compile they cant submit updates mostly.) : example https://github.com/google/charts#development

@anantshri
Copy link
Contributor

@anantshri
Copy link
Contributor

ossf/scorecard#1815 Additional reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants