microsoft / microsoft/go

Enable BIND_NOW in ELF binaries (BinSkim)

Open
#851 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BinSkim
Dominant language
Go
Stars
431
Forks
44
Avg merge
21h 18m
Merged PRs (30d)
30

Description

https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA3011EnableBindNow

Example: https://devdiv.visualstudio.com/DevDiv/_queries/edit/1727438

This check ensures that some relocation data is marked as read only after the executable is loaded, and moved below the '.data' section in memory. This prevents them from being overwritten, which can redirect control flow. Use the compiler flags '-Wl,-z,now' to enable this.

Related: https://go-review.googlesource.com/c/go/+/312509

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docs/BinSkimRules.md, specifically rule BA3011, and review the related Go change linked in the issue. The issue names no implementation files or tests, so locate the ELF build entry points before deciding where the compiler flag belongs. Done means the relevant ELF binaries enable BIND_NOW and satisfy the BinSkim check.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.