Blog Archives

Short is the new Long with longurl for R (plus working with weblogs & URLs in R)

June 23, 2015
By

Necessity is the mother of invention and I had the opportunity today to take an R package from development to CRAN in less than the span of 24 hours. Despite being on vacation, I answered an R question on StackOverflow pertaining to the use of decode_short_url from the twitteR package. That function has no option for validity checking (i.e. whether the...

Read more »

Introducing passivetotal – R Package To Work With the PassiveTotal API

June 14, 2015
By

As a precursor to releasing Episode 18 of DDSec Podcast, we’re releasing a really basic R package to interface with the PassiveTotal API. We asked Brandon Dixon to be on the podcast to talk about his new visualization for users of PassiveTotal, which is a “threat research platform created for analysts, by analysts.”. PT...

Read more »

Running Go language chunks in R Markdown (Rmd) files

June 8, 2015
By

After seeing IPython Markdown Opportunities in IPython Notebooks and Rstudio in the feeds today I wondered how easy/hard it would be to write a handler for something like go code. After taking a look at Yihui Xie‘s knitr source it seemed like it would be fairly easy to mimic a combination of Rcpp and “shell”...

Read more »

Processing Punycode and IDNA Domain Names in R

June 3, 2015
By

When fighting the good cyber-fight, one often has to process domain names. Our good friend @alexcpsec was in need of Punycode/IDNA processing in R which begat the newly-minted punycode R package. Much of the following has been culled from open documentation, so if you are already “in the know” about Punycode & IDNA, skip to the...

Read more »

Playing with elastichoney data in R

May 11, 2015
By
Playing with elastichoney data in R

Work has kept myself & @jayjacobs quite busy of late, but a small data set posted by @jw_sec this morning made for an opportunity for a quick blog post to show how to do some data maniupation and visualization in R for both security and non-security folk (hey, this may even get more non-security folk looking at security data...

Read more »

Building [Security] Dashboards w/R & Shiny + shinydashboard

January 24, 2015
By
Building [Security] Dashboards w/R & Shiny + shinydashboard

Jay & I cover dashboards in Chapter 10 of Data-Driven Security (the book) but have barely mentioned them on the blog. That’s about to change with a new series on building dashboards using the all-new shinydashboard framework developed by RStudio. While we won’t duplicate the full content from the book, we will show different types of...

Read more »

Mapping IPv4 Address (with Hilbert curves) in R

January 2, 2015
By
Mapping IPv4 Address (with Hilbert curves) in R

While there’s an unholy affinity in the infosec commuinty with slapping IPv4 addresses onto a world map, that isn’t the only way to spatially visualize IP addresses. A better approach (when tabluation with bar charts, tables or other standard visualization techniques won’t do) is to map IPv4 addresses into Hilbert space-filling curve. You can get a good feel...

Read more »

Shell Script to Build OS X ‘Shiny Apps’ from Github Gists

December 2, 2014
By

Since the previous post was fairly popular, I went ahead and built a small shell script (also below) to ease the process of building the OS X Shiny-gist application. After copying the script to a place you can run it from in your PATH and executing a “chmod a+x shinyapp.sh” (or whatever you named it), all you have to...

Read more »

Turn R (Shiny) Scripts Into Double-clickable OS X Applications With One Line of Code

November 30, 2014
By
Turn R (Shiny) Scripts Into Double-clickable OS X Applications With One Line of Code

I was playing with some non-security-oriented R+Shiny code the other day, and thought that Shiny apps would be even more useful if they were double-clickable applications that you could “just run”—provided R was installed on the target system—vs have to cut/paste code into R. Now, I know it’s not hard to enter: shiny::runGist('95ec24c1b0cb433a76a5', launch.browser=TRUE) at an R console, but I’ll wager...

Read more »

Don’t Worry _Too_ Much About The 2014 Gallup Crime Poll

October 29, 2014
By
Don’t Worry _Too_ Much About The 2014 Gallup Crime Poll

Gallup released the results of their annual “Crime” poll in their Social Poll series this week and spent much time highlighting the fact that “cyber” was at the top of the list. (There’s nary a visualization on the Gallup post or in the accompanying PDF, so keep that graphic handy or use the scraped/cleaned poll data and...

Read more »