Documentation
  • 🍻Intro
    • Why API Security is Critical?
    • Pynt at a Glance
    • Who Should Use Pynt?
  • πŸ‘©β€πŸ’»API Security Testing
    • Security Testing Overview
    • Prerequisites for Running Pynt Scans
    • How to Install Pynt CLI
    • How to install Pynt Binary (Linux only)
    • Pynt CLI Modes
      • πŸ”΅Pynt Command CLI Mode
      • πŸ”΅Pynt Listen CLI Mode
    • Pynt Security Tests Coverage
      • Business Logic Tests
      • Injection Tests
      • Authentication Bypass Tests
      • Mass Assignment Tests
      • Server-Side Request Forgery Tests
      • Stack Trace In Response
      • Lack of Resources and Rate Limiting
      • File Path Manipulation
      • GraphQL Introspection Vulnerability
      • GraphQL Alias Overloading
      • LLM APIs Vulnerabilities
      • Insecure Transport Scheme
      • Basic Authentication
      • HTTP Desynchronization (Desync) Attack
    • Sensitive Data Exposure Detection
    • Pynt Scans Troubleshooting
      • Pynt CLI Troubleshooting
      • Pynt for Postman Troubleshooting
        • Troubleshoot Pynt Container not Running Error
        • Troubleshoot Empty API Key Error
        • Troubleshoot Unauthorized API Key Error
        • Troubleshoot Collection Not Found Error
        • Troubleshoot Non-Unique Collection Name Error
        • Troubleshoot Empty Collection Identifier Error
        • Troubleshoot Unreachable Target Error
        • Troubleshoot Target Responds with Errors Error
        • Troubleshoot Unresolved Target Domain Error
        • Troubleshoot Unresolved Variable Error
        • Troubleshoot TLS Handshake Fail Error
        • Troubleshoot Few Requests Error
        • Troubleshoot One User Only Error
        • Troubleshoot Failed Assertions Error
    • How To
      • How to Run Business Logic Tests with Pynt
      • How to associate a Pynt scan to an Application in Pynt Dashboard
      • How to tag a scan in Pynt
    • Benchmarks
      • Pynt vs OWASP crAPI
  • 🀲Security Testing Integrations
    • 🟠Pynt with API Testing Tools
      • πŸ”˜Pynt for Postman
        • Fork Pynt Collection
        • Run Pynt Container
        • Run Pynt in Postman
        • View Scan Results in Postman
      • πŸ”˜Pynt for Insomnia
      • πŸ”˜Pynt for ReadyAPI
    • 🟠Pynt with API Testing CLIs
      • πŸ”˜Pynt for Newman (Postman CLI)
      • πŸ”˜Pynt for TestRunner (ReadyAPI CLI)
    • 🟠Pynt with Testing Frameworks
      • πŸ”˜Pynt for .NET (xUnit)
      • πŸ”˜Pynt for Selenium
      • πŸ”˜Pynt for Rest Assured
      • πŸ”˜Pynt for Jest
      • πŸ”˜Pynt for pytest
      • πŸ”˜Pynt for Go
      • πŸ”˜Pynt for JMeter
    • 🟠Pynt on CI/CD
      • ❗How to get Pynt ID for CI/CD Authentication
      • πŸ”˜Pynt for GitHub Actions
      • πŸ”˜Pynt for Azure DevOps Pipelines
      • πŸ”˜Pynt for GitLab
      • πŸ”˜Pynt for Jenkins
    • 🟠Pynt with Burp Suite
    • 🟠Pynt with Browsers
      • πŸ”˜Pynt for Firefox Browser
    • 🟠Live Traffic Connectors
      • πŸ”˜eBPF
        • πŸ”˜Key Components
      • πŸ”˜Traffic Mirroring
    • 🟠Advanced Pynt Examples
      • πŸ”˜Pynt as a Standalone Container
      • πŸ”˜Pynt with Prerecorded Har Files
      • πŸ”˜Pynt with cURL
  • 🈸Applications View
    • Application View Overview
    • Manage Applications
      • Add Application
      • Delete Application
      • Rename Application
    • Manage Sources for API Discovery
      • Add Source
      • Delete Source
      • View Source Info
      • Source Categories
        • API Documentation
          • Swagger
          • Postman Collection
        • API Gateways
          • AWS API Gateway
          • Azure API Gateway
          • Kong API Gateway
          • GCP API Gateway
          • Gravitee API Gateway
        • Testing (API Security Scans)
        • Live Traffic
          • Data Collection with eBPF
          • ALB Traffic Capture with AWS Traffic Mirroring
        • Code Repository
    • Application Dashboard
    • Generate Pentest Report
  • πŸ“šAPI Catalog
    • API Catalog Overview
    • Navigate API Catalog
      • Filtering API Catalog by Application
      • API Catalog Customization
      • API Related Info
      • APIs at Risk
    • Manage API Source Gaps
      • New APIs
      • Untested APIs
      • Shadow APIs
      • Undocumented APIs
    • View Detailed Endpoint Info
  • βͺScan History
    • Scan History Overview
    • Navigate Scan History
      • Associating Scans with Specific Application
      • Filtering by Application
      • Scan Related Info
      • Scan History Customization
    • View Detailed Scan Info
    • Associate Vulnerabilities to Tickets with JIRA
  • Account Management
    • Single Sign-On (SSO)
      • Setting up Okta
      • Setting up Entra ID
Powered by GitBook
On this page
  • What is Go?
  • Pynt's integration with Go
  • Quick start
  • Example
  • SSL Support
  1. Security Testing Integrations
  2. Pynt with Testing Frameworks

Pynt for Go

Integrate Pynt with Go to enhance API security testing. Automate security scans within your Go test suites to detect and mitigate vulnerabilities effectively.

PreviousPynt for pytestNextPynt for JMeter

Last updated 8 months ago

What is Go?

πŸ’‘ is a statically typed, compiled programming language designed for simplicity, reliability, and efficiency. Popular for building scalable web services, Go's concurrency features make it ideal for large-scale applications. It’s used extensively in cloud infrastructure, microservices, and API development. With its performance and ease of use, Go is a top choice for backend developers looking to build high-performance APIs and systems.


Pynt's integration with Go

If your functional tests are written in Go, you can use Pynt command to run API Security tests from these functional tests.


Quick start

  1. Then, continue with the below example.


Example

  1. Get test_goat.go

curl https://raw.githubusercontent.com/pynt-io/pynt/main/goat_functional_tests/goat_test.go -o goat_test.go
  1. Get testify

go get github.com/stretchr/testify
  1. go mod

go mod init goat_test.go
go mod tidy
  1. Check that functional test works

go test
  1. Run Pynt on functional test

pynt command --cmd "go test"

SSL Support

Automatic Self-signed certificates

Pynt can automatically set your go test to use self signed certificate. use the flag --self-signed

pynt command --cmd "<your test command>" --self-signed

Pynt’s suite integrates seamlessly with Go, enabling secure, high-performance development and testing of APIs in Go applications.

First, make sure Pynt's are met.

Follow the instructions to install Pynt container .

is a go based tester for goat (our vulnerable application) that we use to test the functionality of goat, here is how to run it:

πŸ’‘ Pynt CLI Troubleshooting: If you're encountering issues with Pynt's CLI, visit the for solutions and troubleshooting tips.

πŸ’‘ Still Need Help? For any questions or troubleshooting, reach out to the .

🀲
🟠
πŸ”˜
API security testing
prerequisites
here
test_goat.go
Pynt CLI Troubleshooting Guide
Pynt Community Support
Go
Golang