Skip to content

Commit 2851328

Browse files
WilliamBergaminClaude
andauthored
docs: restore canonical security policy over bot-added SECURITY.md (#597)
docs: restore canonical security policy Replace the top-level SECURITY.md added by the Salesforce OSPO Service Bot on 2026-06-02 with a full security policy, and remove the older, minimal .github/SECURITY.md. GitHub resolves security policy with root taking precedence over .github/, so the bot file (pointing to sfdc.co/SubmitVuln) had silently become the effective policy. Rather than restore the outdated stub, the root SECURITY.md now follows the same pattern as the other slackapi repositories: HackerOne (https://hackerone.com/slack) as the primary reporting channel, a CLI-specific threat model, and a coordinated disclosure policy. Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent 3e741bf commit 2851328

2 files changed

Lines changed: 63 additions & 13 deletions

File tree

.github/SECURITY.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

SECURITY.md

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,64 @@
1-
## Security
1+
# Security Policy
22

3-
Please report any security issue to [https://www.sfdc.co/SubmitVuln](https://www.sfdc.co/SubmitVuln)
4-
as soon as it is discovered. This library limits its runtime dependencies in
5-
order to reduce the total cost of ownership as much as can be, but all consumers
6-
should remain vigilant and have their security stakeholders review all third-party
7-
products (3PP) like this one and their dependencies.
3+
Slack takes the security of its software and services seriously, including all open-source repositories managed through the [slackapi](https://github.com/slackapi) GitHub organization.
4+
5+
## Reporting a Vulnerability
6+
7+
**Do NOT report security vulnerabilities through public GitHub issues, pull requests, or discussions.**
8+
9+
If you believe you have found a security vulnerability in the Slack CLI, please report it through the Slack bug bounty program on HackerOne:
10+
11+
**<https://hackerone.com/slack>**
12+
13+
Even if the Slack CLI is not explicitly listed as an in-scope asset on the HackerOne program page, reports for vulnerabilities in this tool should still be submitted there. The Slack security team triages reports for all `slackapi` open-source repositories through this program.
14+
15+
If HackerOne is inaccessible, you may alternatively report the issue to [security@salesforce.com](mailto:security@salesforce.com).
16+
17+
Please do not discuss potential vulnerabilities in public without first coordinating with the security team.
18+
19+
## What to Include
20+
21+
To help us triage and respond quickly, please include:
22+
23+
- Type of vulnerability (e.g., credential exposure, authentication bypass, arbitrary code execution)
24+
- Affected version(s) of the Slack CLI (`slack version`)
25+
- Step-by-step reproduction instructions
26+
- Proof-of-concept code, commands, or payloads, if available
27+
- Impact assessment: what an attacker could achieve
28+
- Any specific configuration or environment required to trigger the vulnerability
29+
- Affected source file paths, if known
30+
31+
## Threat Model
32+
33+
The Slack CLI is a command-line tool that authenticates developers to Slack, stores credentials locally, scaffolds and runs app projects, and communicates with Slack's APIs. The security boundary covers the safe handling of credentials on the local machine, the integrity of authentication flows, and the confidentiality of data in transit.
34+
35+
### In Scope
36+
37+
The following are considered CLI vulnerabilities:
38+
39+
- Leakage of authentication tokens or credentials through logs, error messages, telemetry, or world-readable files on disk
40+
- Authentication or session-handling flaws in the `slack login` / device-flow authorization process
41+
- Failure to enforce TLS for connections to Slack's APIs
42+
- Arbitrary command or code execution triggered by malicious project files, manifests, hook responses, or API responses
43+
- Path traversal or file overwrite outside the project directory during project create/init or other file operations
44+
- Insecure default file permissions on stored credentials or configuration
45+
- Injection vulnerabilities where CLI internals unsafely interpolate untrusted data into commands or requests
46+
47+
### Out of Scope
48+
49+
The following are NOT CLI vulnerabilities:
50+
51+
- Vulnerabilities in the Go runtime, operating system, terminal emulator, or hosting infrastructure
52+
- Security issues in Slack's server-side platform infrastructure (report those directly under Slack's main HackerOne scope)
53+
- Vulnerabilities in third-party Go modules chosen and vendored outside of the CLI's direct dependencies
54+
- Security issues in developer application code created or run with the CLI (e.g., insecure logic in a generated app)
55+
- Attacks that require possession of a valid, already-authenticated session or stolen credentials
56+
- Social-engineering attacks that depend on a developer running an untrusted command or installing a malicious SDK
57+
- Issues that only affect end-of-life versions with no reproduction on supported versions
58+
59+
## Disclosure Policy
60+
61+
This project follows coordinated disclosure:
62+
63+
- Allow a reasonable timeframe for the team to investigate, develop, and release a fix before any public disclosure.
64+
- Researchers who follow responsible disclosure practices are eligible for recognition and bounty consideration through the Slack HackerOne program.

0 commit comments

Comments
 (0)