• Home
  • About
    • Background
    • LinkedIn
    • Presenting Activities
    • Internet Profile
    • About
    • www.cloud-native.info
    • AI Disclosure
  • Observability, Fluent(d) Bit & OpAMP
    • OpAMP Product
    • OpAMP Overview
    • Log Generator
    • Fluent Bit Classic to YAML Format configurations
  • My Books
    • Logs and Telemetry using Fluent Bit
      • Fluent Bit book
      • Book Resources in GitHub
    • Logging in Action with Fluentd, Kubernetes and More
      • Logging in Action with Fluentd – Book
      • Fluentd Book Resources
      • Fluentd & Fluent Bit Additional stuff
    • API & API Platform
      • API Useful Resources
    • Oracle Integration
      • Book Website
      • Useful Reading Sources
    • Publication Contributions
  • Resources
    • GitHub
    • Oracle Integration Site
    • Oracle Resources
    • Mindmaps Index
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
      • Recommended Tech Podcasts
      • Official Sources for Product Logos
      • Java and Graal Useful Links
      • DevTips
  • Music
    • Monster On Music
    • Music Listening
    • Music Reading

Phil (aka MP3Monster)'s Blog

~ from Technology to Music

Phil (aka MP3Monster)'s Blog

Tag Archives: Owasp

CICD for our OpAMP Project

01 Tuesday Dec 2026

Posted by mp3monster in Cloud, Fluent Observability, General, OpAMP, Security, Technology

≈ Leave a comment

Tags

apiops, Bandit, CICD, CycloneDX, GitHub, OpAMP, Owasp, Playwright, pytest, SBOM, Security, semgrep, testing, Vitest, xhatops, Zap

As our OpAMP solution has grown and evolved, from showing how OpAMP works, and can help ChatOps and into AIOps to the fr richer offering it has today where we can:

  • Manage most open source Observability tools using the Supervisor or variant Observer models., along with a core set of commands and status information.
  • Simulator for clients so we can exercise the server side at volume.
  • Natural language operations using AI and MCP.
  • Server side presentation, with plugins for editing configurations driven purely by JSON configuration files.
  • Convenience tools using JSON configuration that can make it easy to spin up different test scenarios.
  • Reference solution for the ChatOps concept.

With all of this are the non functional such as authentication, API definitions for the boundaries. Plus the all important build, test, package and securing of the code.

Developing an open-source observability platform involves considerably more than writing code and getting it to compile. We need to be confident that changes don’t break existing functionality, introduce security vulnerabilities, disrupt the user interface or result in packages that can’t be deployed. Keep the documentation aligned and published.

For OpAMP Core, part of the opamp-observe project, we’ve been putting together a development toolchain that addresses these challenges while remaining open-source and independent of commercial development platforms (with the exception of GitHub as a repository, and the use cloud vendors as a test bed).

The approach combines GitHub Actions with Python tooling, automated testing, static and dynamic security analysis, containerized integration environments and controlled release processes.

This article walks through how those pieces fit together, which processes are currently supported, and where we’re looking to take the development pipeline next.

1. The development lifecycle

At a high level, OpAMP Core follows a fairly conventional Git-based development process. It admittedly has evolved, and we’ve tightened on aspects such as security testing. The interesting thing is, as we’ve evolved, and our CI/CD pipeline has been built out, looking for templates to lean into for adoption, we’ve not seen anything that has jumped out at as as tried and proven combination of tools and preconfigured actions.

Contributing content

Contributors work on branches or forks, make changes, validate them locally and submit pull requests. Once reviewed and merged, GitHub Actions takes responsibility for the configured build, deployment and documentation processes.

One important feature of the setup is the separation between application changes and documentation changes. There’s little value in deploying an OpAMP test environment simply because somebody has corrected a spelling mistake.

The main workflow therefore uses path-based exclusions for documentation-only changes, while a separate GitHub Pages workflow handles documentation publication.

Development and CI workflow

OpAMP Core development lifecycle. Grey nodes represent process stages, blue represents testing tools, red security tooling, amber infrastructure and build tools, and green publication activities. Dashed connections identify supporting tools rather than execution dependencies

Figure 1 — OpAMP Core development lifecycle. Grey nodes represent process stages, blue represents testing tools, red security tooling, amber infrastructure and build tools, and green publication activities. Dashed connections identify supporting tools rather than execution dependencies.

The diagram brings together several processes which are sometimes treated as separate concerns:

  • Local development: Git, Python and the developer CLI provide the initial validation capabilities.
  • Version management: A repository-managed pre-commit hook ensures that we don’t accidentally include credentials, and versioning is correct.
  • Continuous integration: GitHub Actions handles the configured main-branch build and optional cloud deployment.
  • Documentation: Jekyll and GitHub Pages provide a separate publication path.
  • Release management: A dedicated workflow validates packages before authorised PyPI publication.

The tool callouts on local validation identify available capabilities; they do not imply that every developer runs every check before committing. We do this more to control the cost of validating changes using AWS and Azure, but from a pragmatic perspective, if we’re developing the Config Editor which can be operated independently of everything else then you don’t need end-to-end tests all the time.

Similarly, not every available test and security scanner runs in the main GitHub Actions build. This distinction is important when evaluating how much assurance the automated pipeline actually provides. When we want to tag the code for a new release, then we run the full regression stack covering unit tests and containerized component and end to end tests.

We are starting to move towards enabling local runners to be registered and OCI runners which can operate without incurring compute costs.

2. Bringing developer tooling together

OpAMP Core contains several Python components, browser-based interfaces, supporting services, and integrations with different observability agents. Not to mention the OpAMP spec specific library in the center.

Testing each component independently is useful, but it becomes increasingly difficult to remember which commands need to be run, how their reports are generated and where the results should be stored. To address this, the repository provides a common developer command-line interface, opamp-dev-cli which with the right flags will be picked up and be accessible in the main cli (opamp-cli) tool as well.

Rather than replacing established testing and security tools, the CLI orchestrates them and gives developers a consistent way of running quality checks across the project.

For example:

# Test one component
opamp-dev-cli build test named provider
​
# Run tests across components
opamp-dev-cli build test all
​
# Run the full repository security gate
opamp-dev-cli build secure all
​
# Run repository end-to-end tests
opamp-dev-cli build test e2e
​
# Run a passive dynamic security scan
opamp-dev-cli build dast baseline

The developer CLI also supports configuration-driven test suites, dependency auditing, packaging, SBOM (Software Bill of Material) generation and release asset preparation.

Testing and security workflow

The developer CLI's testing and security capabilities. The vertically arranged stages are a conceptual grouping, not a requirement to run every check in sequence. OWASP ZAP is a separate DAST activity

Figure 2 — The developer CLI’s testing and security capabilities. The vertically arranged stages are a conceptual grouping, not a requirement to run every check in sequence. OWASP ZAP is a separate DAST activity.

Testing: different tools for different problems

We use several complementary approaches to testing.

  • pytest handles Python unit, integration and protocol-level tests. This includes the logic within the individual components and interactions between services.
  • Vitest addresses JavaScript behaviour that can be tested without launching the complete browser application.
  • Playwright provides end-to-end testing of user interfaces. This is especially valuable for services such as the configuration editor, where a successful API response doesn’t necessarily mean the browser is behaving correctly.

Playwright also produces useful diagnostic evidence, including screenshots, traces and HTML reports. These can make reproducing intermittent UI failures considerably easier.

None of these tools replaces the others. They address different layers of the application.

Static application security testing

Security testing takes a similar layered approach.

  • Ruff performs Python static analysis, including security-related checks. Its speed makes it practical to use frequently during development.
  • Semgrep provides rule-driven static analysis capable of identifying more specific code patterns. The repository maintains reviewed Semgrep rules rather than relying on a continuously changing remote ruleset.
  • Bandit provides Python-focused security analysis, offering an additional perspective on potentially unsafe coding patterns.

The intention isn’t to treat three scanners as multiple guarantees of security. There is some overlap, but the combination helps us achieve a more through level of checking and coverage.

At present, Ruff findings are blocking in the developer security gate, while Semgrep and Bandit findings are report-only during evaluation. Scanner execution failures remain blocking.

This allows the project to introduce additional analysis without immediately making an existing finding baseline prevent all development.

Dependency and secrets analysis

Two further tools address risks that aren’t necessarily visible through source-code inspection.

  • pip-audit examines Python dependencies for known vulnerabilities. The repository’s auditing process uses the locked dependency graph where available, helping ensure that the packages being assessed match those selected for the project.
  • detect-secrets looks for potentially exposed secrets in source-controlled files.

These are different problems: a perfectly written application may still depend on a vulnerable package, while an otherwise harmless configuration change could accidentally expose credentials.

Both belong in the development security process.

Dynamic application security with OWASP ZAP

Static analysis cannot identify every vulnerability. Some problems only become apparent when a running application is exercised through its HTTP interfaces. For this, OpAMP Core includes OWASP ZAP integration. The developer CLI can launch disposable application targets using Docker, then scan them over HTTP and HTTPS.

This gives us two useful levels of testing:

  • Baseline scanning: Passive inspection that avoids deliberately attacking the application.
  • Full scanning: Active security testing, which requires an explicit option acknowledging the potentially disruptive behaviour.

For example:

opamp-dev-cli build dast baseline
opamp-dev-cli build dast full --allow-active-scan

Container isolation is especially useful here. It allows potentially disruptive tests to be performed against a deliberately disposable environment rather than a shared development or production deployment. ZAP also has limitations. It won’t automatically understand the semantics of OpAMP Protobuf messages, all MCP tool permissions or every supervisor command boundary. Those areas still require purpose-built protocol and integration tests.

3. Making the results useful

Running tests is only half the process. We also need useful, repeatable evidence about what happened.

The development toolchain supports several report formats:

ToolTypical evidence
pytestJUnit XML and coverage reports
PlaywrightHTML reports, JUnit XML, traces and screenshots
RuffSARIF findings
SemgrepSARIF findings
BanditJSON findings
pip-auditDependency vulnerability JSON
detect-secretsSecret scan results
OWASP ZAPHTML, JSON, XML and Markdown reports

Standard report formats are useful because they make it easier to integrate results into CI systems, security reporting and code-review workflows.

The developer CLI also retains issue and error logs, allowing developers to inspect more than a single success or failure message.

An important improvement we’re considering is ensuring that every appropriate CI job publishes its test and security evidence consistently, including when an earlier check has failed.

4. Building and releasing components

OpAMP Core is a multi-component Python project rather than a single standalone package. The development tooling supports building Python wheels and source distributions, checking dependency closure, and creating CycloneDX Software Bills of Materials (SBOMs).

Packaging uses uv, while the release process can validate packages and prepare assets for publication. The GitHub PyPI workflow is deliberately separate from everyday development. Before publishing, it requires evidence that the main workflow completed successfully for the corresponding commit. The release process then performs its security and packaging validation.

Publishing uses PyPI Trusted Publishing with GitHub OIDC credentials, avoiding the need for a long-lived PyPI API token in the CI environment.

There’s an important distinction here: a successful main workflow isn’t necessarily equivalent to every available development test having passed. The current main workflow performs dependency installation and its configured cloud operations, while the dedicated release workflow adds further checks.

Strengthening that relationship is one of the opportunities for the next iteration of the development process.

5. Cloud deployment and regression testing

The current GitHub Actions configuration supports three deployment selections: AWS, Azure and no cloud deployment. The AWS path can build and deploy a CloudFormation-based regression environment, execute the configured regression scenarios and retain test evidence in cloud storage. The Azure path can deploy the application to Azure Web App using OIDC authentication.

The build-only path allows the workflow to complete without provisioning cloud infrastructure. This separation is valuable because different changes require different levels of assurance. A small Python change may need unit tests and static analysis, while a change to OpAMP transport behaviour could justify a complete multi-service regression environment It also helps control the cost and complexity of development.

6. The next step: an isolated private GitHub runner

While GitHub-hosted runners are suitable for much of the project’s public CI, there are reasons to introduce an additional self-hosted execution environment.

Some tests can require substantial resources, local Docker access or more elaborate integration environments. However, there’s a security consideration. A public GitHub repository accepts contributions from people we don’t necessarily know. Running arbitrary pull-request code on a persistent self-hosted machine could expose that machine, its credentials or other systems on the same network.

For OpAMP Core, we’re exploring a model that separates normal public CI from privately controlled integration builds.

Proposed private runner process

Proposed on-demand private runner architecture. This represents a future enhancement, not the current GitHub Actions implementation

Figure 3 — Proposed on-demand private runner architecture. This represents a future enhancement, not the current GitHub Actions implementation.

The approach is relatively straightforward.

Public contributions continue to use GitHub-hosted runners. Only after changes have been reviewed would a maintainer initiate an additional build through a separate private CI repository.

A Docker-hosted GitHub runner would register when started, execute the authorised workload and deregister when stopped. The private repository provides the access-control boundary, while the on-demand runner reduces the amount of time that the build environment is active.

It’s worth emphasising that Docker alone isn’t a security boundary against malicious build scripts. We would still need restricted credentials, appropriate host isolation and careful treatment of code selected for execution. The aim is to make more comprehensive testing available without giving every external contributor a path to execute code on privately operated infrastructure.

Where next?

The immediate priorities are to expand automated pull-request quality gates, retain test evidence consistently, continue evaluating additional SAST findings, and introduce the private-runner approach for more demanding integration tests.

Longer term, the aim is to ensure that a released OpAMP Core package can be traced back through the source revision, build environment, dependency set and validation results that produced it.

All of this is being developed openly as part of opamp-observe/opamp-core. With this repo are several related repos, which we’ll start driving these improvement into.

Contributions, suggestions and experiences with similar open-source development pipelines are welcome.


Further reading

  • OpAMP Core repository
  • Contributor guide
  • Build, test and release commands
  • Testing and result review
  • GitHub Actions workflows
  • GitHub Actions security guidance
  • PyTest
  • Semgrep
  • OWASP ZAP
  • CycloneDX

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Relationship between CVEs, CVSS, CWE and lots of other TLAs starting with C

07 Friday Aug 2026

Posted by mp3monster in development, General, Security, Technology

≈ Leave a comment

Tags

CVE, CVSS, CWE, cyber, MITRE, NIST, Owasp, Security, standards

A lot of developers are focused on CVEs, as we need to know does the library, language or other building block I use to create a solution have an identified vulnerability that needs mitigating? We probably also pay attention to OWASP (Open Worldwide Application Security Project). But CVEs and OWASP aren’t the beginning and end of the story. This a larger ecosystem of standards involved.

CWE (Common Weakness Enumeration) is of particular interest if you get a chance to step back from fire fighting CVEs. This is interesting because, rather than addressing individually identified vulnerabilities, like the OWASP Top 10s, it looks at a classifies the vulnerabilities. When you get down the Base and Variant categories we’re into specific details. This is helpful, as classifying our CVEs against CWE can tell us the technical domains where the maximum effort can return the greatest level of mitigation/remediation of CVEs (be that creating a patch or defining a mitigation strategy).

I was going to sketch out the relationships between the key standards, but realized an LLM can do a better job, so here is a visual summary:

With so many TLAs in the diagram, here is a quick reference pulled together (including from my own library of handy links).

Acronym / referenceExpanded formOfficial HTTP linkOne-sentence summaryAuthority / allocation relevance
CVECommon Vulnerabilities and Exposurescve.org/about/overviewCVE provides globally recognised identifiers and records for publicly disclosed cybersecurity vulnerabilities. (cve.org)CVE IDs are assigned by authorised CNAs or by MITRE/CVE Program structures.
CNACVE Numbering Authoritycve.org/partnerinformation/listofpartnersCNAs are authorised organisations that assign CVE IDs and publish CVE Records within an agreed scope. (cve.org)Primary delegated authorities for allocating CVE IDs.
CNA-LRCNA of Last Resortcve.org/ProgramOrganization/StructureA CNA-LR supports CVE assignment when no more specific CNA is available for a vulnerability. (cve.org)Fallback route for CVE ID allocation.
MITREThe MITRE Corporationmitre.org/focus-areas/cybersecurity/capabilities-resourcesMITRE is closely associated with CVE, CWE, CAPEC and ATT&CK as a maintainer, operator or steward of major cybersecurity knowledge bases. (MITRE)Current CVE Program Secretariat and maintainer of CWE/CAPEC resources.
CWECommon Weakness Enumerationcwe.mitre.orgCWE is a community-developed catalogue of software and hardware weakness types that can lead to vulnerabilities. (Common Weakness Enumeration)CWE IDs are maintained by MITRE; they classify weakness types, not individual vulnerabilities.
CWSSCommon Weakness Scoring Systemcwe.mitre.org/cwssCWSS is a CWE-related scoring method for prioritising software weaknesses, but the older version referenced by MITRE is marked obsolete. (Common Weakness Enumeration)Scores weaknesses, not CVE vulnerabilities; largely secondary compared with CVSS in current vulnerability workflows.
CVSS v4.0Common Vulnerability Scoring System version 4.0first.org/cvss/v4.0CVSS v4.0 is the current major CVSS standard family used to express vulnerability severity with base, threat, environmental and supplemental metrics. (FIRST Forum) (Forum of Incident Response and Security Teams)Maintained by FIRST; it scores vulnerabilities but does not allocate vulnerability IDs.
Defines the scoring structure/ranking scale, not ID allocation.
NISTNational Institute of Standards and Technologynist.govNIST hosts and maintains important security automation resources including NVD and CPE-related specifications. (NVD)Maintains NVD and official CPE dictionary infrastructure.
NVDNational Vulnerability Databasenvd.nist.govNVD enriches CVE records with structured metadata such as affected platforms, weakness classifications, references and severity scores.Enrichment database, not the allocator of CVE IDs.
CPECommon Platform Enumerationnvd.nist.gov/Products/CPECPE provides standardised names for identifying affected products, platforms and software configurations. (NVD)Supports product/platform matching in NVD and vulnerability scanners.
CAPECCommon Attack Pattern Enumeration and Classificationcapec.mitre.orgCAPEC is a MITRE-maintained catalogue of attack patterns used to understand how weaknesses may be exploited. (CAPEC)CAPEC entries relate to CWEs and help connect weaknesses to attack behaviour.
CSAFCommon Security Advisory Frameworkoasis-open.org/committees/csafCSAF is an OASIS standard for creating and exchanging structured machine-readable security advisories. (OASIS)Advisory exchange format that can carry CVE, product status, remediation and scoring data.
VEXVulnerability Exploitability eXchangecisa.gov SBOM resourcesVEX communicates whether a known vulnerability is exploitable in a specific product or deployment context. (CISA)Helps qualify CVE findings so consumers can distinguish exploitable from non-exploitable exposure.
CISACybersecurity and Infrastructure Security Agencycisa.govCISA publishes operational vulnerability guidance and maintains the Known Exploited Vulnerabilities catalogue. (CISA)Maintains KEV and participates in the wider CVE/vulnerability ecosystem.
KEVKnown Exploited Vulnerabilities cataloguecisa.gov/known-exploited-vulnerabilities-catalogKEV is CISA’s authoritative catalogue of vulnerabilities known to have been exploited in the wild. (CISA)Prioritisation signal based on observed exploitation, not severity alone.
EPSSExploit Prediction Scoring Systemfirst.org/epssEPSS estimates the probability that a published CVE will be exploited in the wild within the next 30 days. (FIRST Forum)Probability-based prioritisation signal that complements CVSS and KEV.
CERT/CCCERT Coordination Centerkb.cert.org/vulsCERT/CC coordinates vulnerability disclosure and publishes Vulnerability Notes. (CERT Coordination Center)Can act as a coordinator in disclosure workflows and may interact with CNA/CVE processes.
CVDCoordinated Vulnerability DisclosureCERT Guide to CVDCVD is the process of coordinating information among finders, vendors and other stakeholders before public disclosure and mitigation communication. (CERT Coordination Center)Process framework around disclosure; not itself an ID system.
SBOMSoftware Bill of Materialsntia.gov/software-bill-materialsAn SBOM describes the software components that make up a product so downstream users can reason about exposure and supply-chain risk. (NTIA)Often paired with VEX and vulnerability feeds to assess affected components.
CycloneDXCycloneDX Bill of Materials standardcyclonedx.orgCycloneDX is an OWASP full-stack Bill of Materials standard for supply-chain and cyber-risk use cases. (CycloneDX)SBOM/VEX-capable format used in vulnerability management pipelines.
SPDXSoftware Package Data Exchangespdx.devSPDX is an open standard, ISO/IEC 5962:2021, for representing SBOMs and other software supply-chain metadata. (SPDX)SBOM format often used alongside vulnerability data sources.
SWIDSoftware Identification tagNIST SWID guidanceSWID tags are ISO/IEC 19770-2 software identification files that can support software asset, patch and vulnerability management. (NIST Computer Security Resource Center)Product identification standard related to CPE-style inventory matching.
SSVCStakeholder-Specific Vulnerability CategorizationCMU SEI SSVC v2.0SSVC uses decision trees to prioritise vulnerability response actions for specific stakeholder contexts. (SEI)Prioritisation model that complements CVSS, KEV and EPSS.
MITRE ATT&CKAdversarial Tactics, Techniques and Common Knowledgeattack.mitre.orgMITRE ATT&CK is a knowledge base of adversary tactics, techniques and procedures based on real-world observations. (MITRE ATT&CK)Related attack-behaviour framework that can be connected to CAPEC/CWE/CVE analysis.
OWASP Top 10Open Worldwide Application Security Project Top 10owasp.org/Top10The OWASP Top 10 is a standard awareness document for developers and web application security risks. (OWASP Foundation)Useful application-security reference that often maps conceptually to CWEs.
OSVOpen Source Vulnerabilities / OSV schemaosv.devOSV provides a machine-readable vulnerability format and database that maps open-source vulnerabilities precisely to package versions or commit hashes. (OSV)Adjacent vulnerability-data ecosystem, especially useful for open-source dependency scanning.

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Oracle API CS vs OCI API approach to securing gateway configuration

02 Tuesday Jun 2020

Posted by mp3monster in API Platform CS, APIs & microservices, General, Technology

≈ Leave a comment

Tags

API, Cloud Native, IaaS, Linux Foundation, OCI, Oracle, Owasp, PaaS, SaaS, Security, Terraform

A couple of years ago I got to discuss some of the design ideas behind API Platform Cloud Service. One of the points we discussed was how API Platform CS kept the configuration of APIs entirely within the platform, which meant some version management tasks couldn’t be applied like any other code. Whilst we’ve solved that problem (and you can see the various tools for this here API Platform CS tools). The argument made that your API policies are pretty important, if they get into the public domain then people can better understand to go about attacking your APIs and possibly infer more.

Move on a couple of years, Oracle’s 2nd generation cloud is established an maturing rapidly (OCI) and the organisational changes within Oracle mean PaaS was aligned to SaaS (Oracle Integration Cloud, Visual Builder CS as examples) or more cloud native IaaS. The gateway which had a strong foot in both camps eventually became aligned to IaaS (note that this doesn’t mean that the latest evolution of the API platform (Oracle Infrastructure API) will lose its cloud agnostic capabilities, as this is one of unique values of the solution, but over time the underpinnings can be expected to evolve).

Any service that has elements of infrastructure associated with it has been mandated to use Terraform as the foundation for definition and configuration. The Terraform mandate is good, we have some consistency across products with something that is becoming a defacto standard. However, by adopting the Terraform approach does mean all of our API configurations are held outside the product, raising the security risk of policy configuration is not hidden away, but conversely configuration management is a lot easier.

This has had me wondering for a long time, with the use of Terraform how do we mitigate the risks that API CS’s approach was trying to secure? But ultimately the fundamental question of security vs standardisation.

Mitigation’s

Any security expert will tell you the best security is layered, so if one layer is found to be vulnerable, then as long as the next layer is different then you’re not immediately compromised.

What this tells us is, we should look for ways to mitigate or create additional layers of security to protect the security of the API configuration. These principles probably need to extend to all Terraform files, after all it not only identifies security of not just OCI API, but also WAF, networks that are public and how they connect to private subnets (this isn’t an issue unique to Oracle, its equally true for AWS and Azure). Some mitigation actions worth considering:

  • Consider using a repository that can’t be accidentally exposed to the net – configuration errors is the OWASP Top 10. So let’s avoid the mistake if possible. If this isn’t an option, then consider how to mitigate, for example …
    • Strong restrictions on who can set or change visibility/access to the repo
    • Configure a simple regular check that looks to see if your repos have been accidentally made publicly visible. The more frequent the the check the smaller the potential exposure window
  • Make sure the Terraform configurations doesn’t contain any hard coded credentials, there are tools that can help spot this kind of error, so use them. Tools exist to allow for the scanning of such errors.
  • Think about access control to the repository. It is well known that a lot of security breaches start within an organisation.
  • Terraform supports the ability to segment up and inject configuration elements, using this will allow you to reuse configuration pieces, but could also be used to minimize the impact of a breach.
  • Of course he odds are you’re going to integrate the Terraform into a CI/CD pipeline at some stage, so make sure credentials into the Terraform repo are also secure, otherwise you’ve undone your previous security steps.
  • Minimize breach windows through credentials tokens and certificate hanging. If you use Let’s Encrypt (automated certificate issuing solution supported by the Linux Foundation). Then 90 day certificates isn’t new.

Paranoid?

This may sound a touch paranoid, but as the joke goes….

Just because I’m paranoid, it doesn’t mean they’re not out to get me

Fundamental Security vs Standardisation?

As it goes the standardisation is actually a dimension of security. (This article illustrates the point and you can find many more). The premise is, what can be ensured as the most secure environment, one that is consistent using standards (defacto or formal) or one that is non standard and hard to understand?

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Security Vulnerabilities in Solution Deployment

04 Saturday Jan 2020

Posted by mp3monster in development, General, Technology

≈ Leave a comment

Tags

CNCF, deployment, Oracle, Owasp, Security, software, TUF, update framework, updating

To varying degrees, most techies are aware of the security vulnerabilities identified in the OWASP Top 10 (SQL Injection, trying to homebrew Identity management etc), although I still sometimes have conversations where I feel the need to get the yellow or red card out. But the bottom line is that these risks are perhaps more appreciated because it is easier to understand external entities attacking seeking direct attacks to disrupt or access information. But there are often subtler and at least more costly to repair attacks such as internal attacks and indirect attacks such as compromising software deployment mechanisms.

This, later attack Is not a new risk, as you can see from the following links, been recognised by the security community for some time (you can find academic papers going back 10+ years looking at the security risks for Yum and RPM for example).

  • Survivable Key Compromise in Software Update Systems
  • Consequences of Insecure Software Updates
  • Attacks on Package Manager
  • The Problem of Package Manager Trust

But software is becoming ever more pervasive, we’re more aware than ever that maintaining software to the latest releases means that known vulnerabilities are closed. As a result, we have seen a proliferation in mechanisms to recognise the need to update and deploying updates. 10 years ago, updating frameworks where typically small in number and linked to vendors who could/had to invest in making the mechanisms as a secure as possible – think Microsoft, Red Hat. However we have seen this proliferate, any browser worthy of attention has automated updating let alone the wider software tools. As development has become more polyglot every language has its central repos of framework libraries (maven central, npm, chocolatey ….). Add to this the growth in multi-cloud and emphasis on micro deployments to support microservices and the deployment landscape gets larger and ever more complex and therefore vulnerable.

What to do?

Continue reading →

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Notifications from Oracle API Platform Cloud Service

11 Monday Nov 2019

Posted by mp3monster in API Platform CS, General, Oracle, Technology, tools

≈ 2 Comments

Tags

API, Cloud, CS, IDCS, Notifications, nudge, Oracle, Owasp, platform, slack, utility

There are circumstances in which notifications from the Oracle API Platform CS could be seen as desirable.  For example, if you wish to ensure that the developers are defining good APIs and not accidentally implementing APIs that hit the OWASP Top 10 for APIs. Then you will probably configure things such that developer users can design the APIs, configure the policies, but only request an API to be deployed.

However, presently notifications through mechanisms such as email or via collaboration platforms such as Slack aren’t available.  But implementing a solution isn’t difficult.  For the rest of this blog we’ll explore how this might be implemented, complete with a Slack implementation.

Continue reading →

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

API Security

01 Saturday Jun 2019

Posted by mp3monster in API Platform CS, APIs & microservices, General, Oracle, Technology

≈ Leave a comment

Tags

API, API Platform, api Security.io, Owasp, pen testing, SANS, Security

I’ve started to subscribe to the APISecurity.io newsletter. The newsletter includes the analysis of recent API based security breaches along with other useful API related news. Some of the details of the breaches make for interesting reading and provide some good examples of what not to do. It is rather surprising how regularly the lack of the application of good practises is, including:

  • Checking the payload is valid to the definition,
  • Checking the payload size to ensure it is in the expected bounds,
  • Use strong typing on the content received it will help validate the content and limit the chances of poisonous content like injected SQL,
  • owaspEnsuring the API has mitigation’s against the classic OWASP Top 10 – SQL Injection, poor authentication implementation.

More broadly, we see that people will recognise the need for applying penetration testing, and look to external organisations to perform the testing, when such work is commissioned the understanding of what the pen tester does is not understood by those logocommissioning the tests (SANS paper of security scoping), therefore know whether all the risks are checked. When you add to that, the temptation to keep such costs down resulting in the service provider not necessarily probing your APIs to the fullest extent. Not all penetration test services are equal, so simply working to a budget isn’t wise, yes there is a need for pragmatism, but only when you understand the cost/risk trade-off.

But also remember application logic and API definitions and the security controls in place change over time as do the discovery of new vulnerabilities on the stack you’re using, along with evolving compliance requirements. All meaning that a penetration test at the initial go-live is not enough and should be an inherent part of an APIs lifecycle.

cloudgs_apimgrWhen it comes to payload checks etc, products like Oracle’s API Platform make it easy to realise or provide out of the box checks for factors such as size limits, implementing payload checks, so better to use them.

If you ever need to be reminded that of why best practises are needed and should be implemented; a mindset of when not if a breach will happen will ensure you’re prepared and the teams are motivated to put the good practises in.

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...
    • About
      • AI Disclosure
      • Internet Profile
      • Music Buying
      • Presenting Activities
    • Books & Publications
      • Logging in Action with Fluentd, Kubernetes and More
      • Logs and Telemetry using Fluent Bit
      • Oracle Integration
      • API & API Platform
        • API Useful Resources
        • Useful Reading Sources
    • Mindmaps Index
    • Monster On Music
      • Music Listening
      • Music Reading
    • OpAMP explained: the control plane for observability agents
    • Oracle Resources
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
        • Logging Frameworks and Fluent Bit and Fluentd connectivity
        • REGEX for BIC and IBAN processing
      • Formatting etc
      • Java and Graal Useful Links
      • Official Sources for Product Logos
      • Python Setup & related tips
      • Recommended Tech Podcasts

    TOGAF 9

    Logs and Telemetry using Fluent Bit


    Logging in Action — Fluentd

    Logging in Action with Fluentd


    Oracle Ace Director Alumni

    Oracle Cloud Integration Book


    API Platform Book


    Oracle Dev Meetup London

    Blog Categories

    • App Ideas
    • Books
    • Enterprise architecture
    • General
      • ExternalWebPublications
      • LinkedIn
      • Website
    • Music
      • Music Resources
      • Music Reviews
    • Photography
    • Podcasts
    • Security
    • Technology
      • AI
      • APIs & microservices
      • chatbots
      • Cloud
      • Cloud Native
      • Dev Meetup
      • development
        • languages
      • drone
      • Fluent Observability
        • Fluentbit
        • Fluentd
        • OpAMP
      • logsimulator
      • mindmap
      • OMESA
      • Oracle
        • API Platform CS
          • tools
        • ITSO & OEAF
        • OIC – ICS
        • Oracle Cloud Native
        • OUG
      • railroad diagrams
      • TOGAF

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,629 other subscribers

    RSS

    RSS Feed RSS - Posts

    RSS Feed RSS - Comments

    December 2026
    M T W T F S S
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
    « Nov    

    Speaker Recognition

    Open Source Summit Speaker

    Twitter

    Tweets by mp3monster

    History

    Flickr Pics

    More Photos

    Social

    • View @mp3monster’s profile on Twitter
    • View philwilkins’s profile on LinkedIn
    • View mp3monster’s profile on GitHub
    • View mp3monster’s profile on Flickr
    • View mp3muncher’s profile on WordPress.org
    • View philmp3monster’s profile on Twitch
    Follow Phil (aka MP3Monster)'s Blog on WordPress.com

    Blog at WordPress.com.

    • Subscribe Subscribed
      Phil (aka MP3Monster)'s Blog
      Join 233 other subscribers

      Have a WordPress.com account? Log in now.

    • Phil (aka MP3Monster)'s Blog
      View site in Reader
      Manage subscriptionsSign upLog in
      Report this content
      Collapse this bar
    Loading Comments...

    You must be logged in to post a comment.

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Our Cookie Policy
    %d