
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
OCI has upgraded the DRG (Dynamic Router Gateway) service which simplifies the network architecture with multiple VCNs:
https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/scenario_d.htm#scenariod
The reason behind this utility is described here: 1251
This simple utility is intended to update the routing table during the terraform run. It inserts the routing rule in an idempotent way (so, it checks first if exact rule is present in routing table).
The example usage is inside null_resource
terraform resource after VCN peering establishment:
resource "null_resource" "right_route_table_update" {
triggers = {
rt_id = data.oci_core_vcn.right_vcn.default_route_table_id
cidr = data.oci_core_vcn.left_vcn.cidr_block
lpg_id = oci_core_local_peering_gateway.right_lpg.id
}
provisioner "local-exec" {
command = "ortu --rt-ocid ${self.triggers.rt_id} --cidr ${self.triggers.cidr} --ne-ocid ${self.triggers.lpg_id}"
}
provisioner "local-exec" {
when = destroy
command = "ortu delete --rt-ocid ${self.triggers.rt_id} --cidr ${self.triggers.cidr} --ne-ocid ${self.triggers.lpg_id}"
}
}
resource "null_resource" "left_route_table_update" {
triggers = {
rt_id = data.oci_core_vcn.left_vcn.default_route_table_id
cidr = data.oci_core_vcn.right_vcn.cidr_block
lpg_id = oci_core_local_peering_gateway.left_lpg.id
}
provisioner "local-exec" {
command = "ortu --rt-ocid ${self.triggers.rt_id} --cidr ${self.triggers.cidr} --ne-ocid ${self.triggers.lpg_id}"
}
provisioner "local-exec" {
when = destroy
command = "ortu delete --rt-ocid ${self.triggers.rt_id} --cidr ${self.triggers.cidr} --ne-ocid ${self.triggers.lpg_id}"
}
}
There is a default route table updated. Don't forget to ignore the route_rules
changes for this resource:
resource "oci_core_default_route_table" "default_route_table" {
manage_default_resource_id = oci_core_vcn.vcn.default_route_table_id
display_name = var.vcn_name
freeform_tags = merge(local.default_tags, var.tags)
lifecycle {
ignore_changes = [
route_rules,
]
}
}
resource "null_resource" "default_route_table_update" {
triggers = {
rt_id = oci_core_default_route_table.default_route_table.id
ig_id = oci_core_internet_gateway.internet_gateway.id
cidr = local.anywhere
}
provisioner "local-exec" {
command = "ortu --rt-ocid ${self.triggers.rt_id} --cidr ${self.triggers.cidr} --ne-ocid ${self.triggers.ig_id} --debug"
}
provisioner "local-exec" {
when = destroy
command = "ortu delete --rt-ocid ${self.triggers.rt_id} --cidr ${self.triggers.cidr} --ne-ocid ${self.triggers.ig_id} --debug"
}
}
I'm using Ansible in my projects, so, this tool relies on ~/.oci/config
and OCI_CONFIG_PROFILE
environment variable.
In the case of OCI instance usage set the OCI_CLI_AUTH
environment variable to instance_principal
value.
FAQs
Route table updater for Oracle Cloud Infrastructure
We found that ortu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.