Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@devicefarmer/stf

Latest version: v3.11.0

Overview

Last scanned
2 Dec 2026
Published
2 Dec 2026
npm package Publisher: koral, pcrepieux
4,707 Stars
647 Forks
4 Versions
1.6K Downloads
TypeScript Repo language

Scan summary

@devicefarmer/stf was last scanned on 2 Dec 2026 at version 3.11.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 2 were published within 6 days (27 Nov – 2 Dec 2026).
  • Findings: No rules fired in version 3.11.0.
  • Downloads: 1,618 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.11.0 LATEST 2 Dec 2026 No rules fired
3.10.0 27 Nov 2026 No rules fired
3.9.0 26 Oct 2026 No rules fired
3.8.0 23 Sep 2026 Not shown

No rules fired in 3.11.0

Findings

Findings for v3.11.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.11.0; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 29 Jan 2024

1 CRITICAL 0 HIGH 0 MEDIUM 0 LOW

Versions

  • > 3.6.6
  • ≤ 3.6.6 1 CRITICAL

Vulnerabilities

  • CVE-2023-51839 Critical 29 Jan 2024 DeviceFarmer stf uses DES-ECB No fix yet

README

The publisher’s own README, as collected from the registry.

Docker Pulls npm

STF (or Smartphone Test Farm) is a web application for debugging smartphones, smartwatches and other gadgets remotely, from the comfort of your browser.

Overview

Close-up of device shelf

Super short screencast showing usage

Contributors

Thank you to all the people who have already contributed to STF!

Features

  • OS support
    • Android
      • Supports versions 2.3.3 (SDK level 10) to 15 (SDK level 35)
      • Supports Wear 5.1 (but not 5.0 due to missing permissions)
      • Supports Fire OS, CyanogenMod, and other heavily Android based distributions
      • root is not required for any current functionality
    • Experimental iOS on a Linux USB host
      • Live screen, touch/text/Home, signed IPA installation, device health and iPhone controls
      • Local Compose/native setup and provider behavior and limits
      • Requires a signed WebDriverAgent prepared with Xcode; no Mac runtime node is needed
  • Remote control any device from your browser
    • Real-time screen view
      • Refresh speed can reach 30-40 FPS depending on specs and Android version. See minicap for more information.
      • Rotation support
    • Supports typing text from your own keyboard
      • Supports meta keys
      • Copy and paste support (although it can be a bit finicky on older devices, you may need to long-press and select paste manually)
      • May sometimes not work well with non-Latin languages unfortunately.
    • Multitouch support on touch screens via minitouch, two finger pinch/rotate/zoom gesture support on regular screens by pressing Alt while dragging
    • Drag & drop installation and launching of .apk files
      • Launches main launcher activity if specified in the manifest
    • Reverse port forwarding via minirev
      • Access your local server directly from the device, even if it's not on the same network
    • Open websites easily in any browser
      • Installed browsers are detected in real time and shown as selectable options
      • Default browser is detected automatically if selected by the user
    • Execute shell commands and see real-time output
    • Display and filter device logs
    • Use adb connect to connect to a remote device as if it was plugged in to your computer, regardless of ADB mode and whether you're connected to the same network
    • File Explorer to access device file system
    • Experimental VNC support (work in progress)
  • Monitor your device inventory
    • See which devices are connected, offline/unavailable (indicating a weak USB connection), unauthorized or unplugged. See device states for what each state means
    • See who's using a device
    • Search devices by phone number, IMEI, ICCID, Android version, operator, product name, group name and/or many other attributes with easy but powerful queries
    • Show a bright red screen with identifying information on a device you need to locate physically
    • Track battery level and health
    • Rudimentary Play Store account management
      • List, remove and add new accounts (adding may not work on all devices)
    • Display hardware specs
  • Use the Booking & Partitioning systems
    • Overview
      • The partitioning system allow you [administrator level] to allocate distinct sets of devices to different projects or organizations (i.e. represented by user sets) for an unlimited period
      • The booking system allows you to reserve a set of devices for a set of users during a limited time (e.g. from 3:00 am to 4:00 am during 5 days)
      • What is common to the booking & partitioning systems is the concept of Group, that is, an association of devices, users and a specification of time
      • Report to GroupFeature.pdf for detailed documentation on how to use this feature
    • Monitor your group inventory
      • See which groups are active, ready or pending, as well as other group properties: name, identifier, owner, devices, users, class, duration, repetition, starting date, expiration date
      • Search groups by their property values
      • Contact by email the owners of the selected groups
    • Manage your groups
      • Create a group by specifying its name, devices, users and schedule
      • Get ready your group in order it is scheduled by the system
      • Search groups by their property values
      • Remove your group or a selection of your groups
      • Contact by email the owners of the selected groups [administrator level]
  • Manage the devices [administrator level]
    • Search the devices by their property values
    • Remove a device or a selection of devices meeting a set of filters: present, booked, annotated, controlled
  • Manage the users [administrator level]
    • Create a user by providing his name and his email
    • Search the users by their property values
    • Remove a user or a selection of users meeting a set of filters: group owner
    • Contact a user or a selection of users by email
    • Set the default groups quotas applicable to all users
    • Set the groups quotas applicable to a specific user
  • Simple REST API
  • Prometheus metrics

Status

STF is in continued, active development, but development is still largely funded by individual team members and their unpaid free time, leading to slow progress. While normal for many open source projects, STF is quite heavy on the hardware side, and is therefore somewhat of a money sink.

We're also actively working to expand the team, don't be afraid to ask if you're interested.

Short term goals

Here are some things we are planning to address ASAP.

  1. Performance
  2. Properly expose the new VNC functionality in the UI
  3. Properly reset user data between uses (Android 4.0+)
  4. Automated scheduled restarts for devices
Long term goals
  1. Expand experimental iOS support (landscape, multi-touch and Appium integration)

A quick note about security

As the product has evolved from an internal tool running in our internal network, we have made certain assumptions about the trustworthiness of our users. As such, there is little to no security or encryption between the different processes. Furthermore, devices do not get completely reset between uses, potentially leaving accounts logged in or exposing other sensitive data. This is not an issue for us, as all of our devices are test devices and are only used with test accounts, but it may be an issue for you if you plan on deploying STF to a multiuser environment. We welcome contributions in this area.

Requirements

Note that you need these dependencies even if you've installed STF directly from NPM, because they can't be included in the package.

On Mac OS, you can use homebrew to install most of the dependencies:

brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config cmake

On Windows you're on your own. In theory you might be able to get STF installed via Cygwin or similar, but we've never tried. In principle we will not provide any Windows installation support, but please do send a documentation pull request if you figure out what to do.

We also provide a Docker container in the Docker Hub as devicefarmer/stf. You can use our Dockerfile as guidance if you'd prefer to do the installation yourself. The docker-compose.yaml runs STF units as separate services. See the Compose setup guide for configuration and startup instructions. For Kubernetes, see the Helm deployment guide. For automated device reservations, see the STF coordinator guide.

You should now be ready to build or run STF.

Note that while Mac OS can be used for development, it doesn't provide a very reliable experience in production due to (presumed) bugs in ADB's Mac OS implementation. We use CoreOS but any Linux or BSD distribution should do fine.

Installation

As mentioned earlier, you must have all of the requirements installed first. Then you can simply install via NPM:

npm install -g @devicefarmer/stf

Now you're ready to run. For development, though, you should build instead.

Building

To build a container from this checkout, use Docker with BuildKit:

docker build -t stf:local .
docker run --rm stf:local

The Dockerfile supports linux/amd64 and linux/arm64. Build tools stay in separate stages. The runtime contains Node.js, production dependencies, GraphicsMagick and a headless Java runtime. STF runs as an unprivileged user with read-only access to the application files in /app. Dependency installation is cached independently of application sources. It runs npm ci, so the image gets the versions recorded in package-lock.json; a source tree without that file falls back to npm install. The bundled AAB-to-APK tool requires amd64.

For custom health checks inside STF containers, replace wget with a Node.js probe like the one in Docker Compose. Derived images that use npm or compile native modules should do so in a build stage and copy the resulting files into the runtime image. To refresh Ubuntu packages in a local build, pass --no-cache-filter runtime-base to docker buildx build.

To use a custom npm registry or credentials, pass an npm config as a BuildKit secret:

docker build --secret id=npmrc,src="$HOME/.npmrc" -t stf:local .

The config file is mounted only for npm build steps and is not copied into image layers. The Ubuntu build excludes .npmrc files from its context via Dockerfile.dockerignore. Without the secret, npm uses its defaults. Host environment variables referenced by the file (such as ${NPM_TOKEN}) are not forwarded.

Secret contents do not invalidate the build cache; after changing the config, rebuild with docker buildx build --no-cache-filter dependencies,production-dependencies,build --secret id=npmrc,src="$HOME/.npmrc" --load -t stf:local ..

After you've got all the requirements installed, it's time to fetch the rest of the dependencies.

First, fetch all NPM modules:

npm ci

npm ci installs exactly the versions recorded in package-lock.json, as CI and the Docker image do. npm install works as well; it also updates package-lock.json when package.json asks for something the lockfile does not have.

Then compile the TypeScript sources in lib/, which bin/stf runs from:

node build.mts compile

You may also wish to link the module so that you'll be able to access the stf command directly from the command line:

npm link

You should now have a working installation for local development.

Running

STF comprises several independent processes that must normally be launched separately. Deploy them with the Compose setup guide; DEPLOYMENT.md covers the older route with one systemd unit per process.

For development purposes, however, there's a helper command to quickly launch all required processes along with a mock login implementation. Note that you must have RethinkDB running first.

If you don't have RethinkDB set up yet, to start it up, go to the folder where you'd like RethinkDB to create a rethinkdb_data folder in (perhaps the folder where this repo is) and run the following command:

rethinkdb

Note: if it takes a long time for RethinkDB to start up, you may be running into rethinkdb/rethinkdb#4600 (or rethinkdb/rethinkdb#6047). This usually happens on macOS Sierra. To fix this on macOS, first run scutil --get HostName to check if the HostName variable is unset. RethinkDB needs it to generate a server name for your instance. If you find that it's empty, running sudo scutil --set HostName $(hostname) has been confirmed to fix the issue on at least one occasion. See the issues for more complete solutions.

You should now have RethinkDB running locally. Running the command again in the same folder will reuse the data from the previous session.

An administrator level is available in STF in addition of the native user one, with increased rights on some features (e.g. booking & partitioning systems, management of users & devices, ...). The corresponding built-in administrator user has the following default credentials:

  • name: administrator
  • email: administrator@fakedomain.com

Another built-in object exists, this is the root standard group to which the users and devices belong the first time they register to the STF database, its default name is Common

These built-in objects are created in the STF database if they do not already exist

Of course, you can override the default values of these built-in objects by settings the following environment variables before to initialize the STF database through stf local or stf migrate commands:

  • root standard group name: STF_ROOT_GROUP_NAME
  • administrator user name: STF_ADMIN_NAME
  • administrator user email: STF_ADMIN_EMAIL

You're now ready to start up STF itself:

stf local

Later, if you want to change the values of these built-in objects, for example to change the identity of the administrator user, you must follow the below instructions or you are likely to encounter data inconsistency issues:

  1. stop the STF server (without stop the RethinkDB database)
  2. It is recommended to make a backup of the database (in case of inconsistency problem during migration)
  3. set environment variables to new desired values for built-in objects
  4. if you change the administrator identity, make sure the user does not exist in the database yet, if it does you need to delete it first via the UI or RestFul API
  5. run the stf migrate command
    • If you get an STF error like ERR/db:api.. (e.g. you tried to change the name of the current administrator or the new administrator already exists in the database), it means that no changes have been made to the database that remain consistent
    • otherwise you get a STF message telling you the built-in objects have been updated successfully
  6. Finally if all went well you are now ready to start STF itself:
stf local

After the webpack build process has finished (which can take a small while) you should have your private STF running on http://localhost:7100. If you had devices connected before running the command, those devices should now be available for use. If not, you should see what went wrong from your console. Feel free to plug in or unplug any devices at any time.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @devicefarmer/stf

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PolinRider Returns
npm

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229