Skip to content

feat: [censys_enrichmentapis] add enrichment API support - #1059

Open
adulau wants to merge 2 commits into
mainfrom
codex/enrich-censys_enrichmentapis
Open

adulau wants to merge 2 commits into
mainfrom
codex/enrich-censys_enrichmentapis

Conversation

@adulau

@adulau adulau commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Analysts can query the Censys host enrichment endpoint with a platform token and organization ID, retrieve web properties on ports 80 and 443, or retrieve certificate metadata. Host services become referenced network objects; annotations retain provider details and available scores. Configuration and API usage are documented.

Includes a usage guide and focused adapter tests.

Validation: 19 passed, 1 warning in 0.73s with pytest -q tests/test_censys_enrichmentapis.py; flake8 passed for the module. The combined enrichment regression check passed 389 tests.

Authenticated provider API validation remains pending. Tests use sanitized fixtures; no provider credentials are included.

Review updates: Preserve source IP direction and the corresponding source/destination service port.

Updated validation: 20 passed, 1 warning in 0.65s; module lint passed. Combined regression validation passed 409 tests.

@adulau
adulau marked this pull request as ready for review October 29, 2026 22:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T22:12:49.257353Z 33035e2 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-29T22:11:51.295097Z 33035e2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 33035e20e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if kind in ("ip-src", "ip-dst"):
for service in resource.get("services", [])[:limit]:
obj = _object(event, attribute, "network-connection")
obj.add_attribute("ip-dst", value=value, to_ids=False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve source direction when enriching ip-src

When the input attribute is ip-src, every generated network-connection hard-codes the address as ip-dst, changing the indicator's directional meaning and causing the enriched object to correlate it as a destination. Use the input attribute type for the object relation so ip-src lookups remain sources.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant