slack

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package slack provides detectors for Slack secret types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct{}

Token detects Slack Bot and User OAuth tokens.

func (*Token) Description

func (d *Token) Description() string

Description returns a human-readable description of the Slack token detector.

func (*Token) ID

func (d *Token) ID() string

ID returns the unique identifier of the Slack token detector.

func (*Token) Keywords

func (d *Token) Keywords() []string

Keywords returns the Aho-Corasick pre-filter keywords for Slack token detection.

func (*Token) Scan

func (d *Token) Scan(_ context.Context, data []byte) []detector.RawFinding

Scan scans the given data for Slack token patterns.

func (*Token) Severity

func (d *Token) Severity() finding.Severity

Severity returns the default severity level for Slack token findings.

type Webhook

type Webhook struct{}

Webhook detects Slack Incoming Webhook URLs.

func (*Webhook) Description

func (d *Webhook) Description() string

Description returns a human-readable description of the Slack webhook detector.

func (*Webhook) ID

func (d *Webhook) ID() string

ID returns the unique identifier of the Slack webhook detector.

func (*Webhook) Keywords

func (d *Webhook) Keywords() []string

Keywords returns the Aho-Corasick pre-filter keywords for Slack webhook detection.

func (*Webhook) Scan

func (d *Webhook) Scan(_ context.Context, data []byte) []detector.RawFinding

Scan scans the given data for Slack Webhook URL patterns.

func (*Webhook) Severity

func (d *Webhook) Severity() finding.Severity

Severity returns the default severity level for Slack webhook findings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL