H. Joel Trussell

124 papers B 10Misc 25Journal 58Unranked 31
YearRankTypeTitle / Venue / Authors
2023 J jnl
J. Electronic Imaging
Michael J. Vrhel, H. Joel Trussell
2021 conf
CIC
Michael J. Vrhel, H. Joel Trussell
2020 J jnl
IEEE Trans. Educ.
H. Joel Trussell, Marcia L. Gumpertz
2019 J jnl
Proc. IEEE
H. Joel Trussell
2018 J jnl
Proc. IEEE
H. Joel Trussell, Vaishali Damle
2018 J jnl
Proc. IEEE
H. Joel Trussell, Yongpeng Wu, Chengshan Xiao, Zhi Ding, Xiqi Gao, Shi Jin, Mehdi Bennis, Mérouane Debbah, H. Vincent Poor, Mark Schubin
2018 J jnl
Proc. IEEE
Tülay Adali, H. Joel Trussell, Lars Kai Hansen, Vince D. Calhoun
2018 J jnl
Proc. IEEE
H. Joel Trussell
2017 J jnl
Proc. IEEE
H. Joel Trussell, Vaishali Damle
2017 J jnl
Proc. IEEE
H. Joel Trussell
2016 B conf
ICIP
H. Joel Trussell, Ali Ozer Ercan, Nick G. Kingsbury
2016 J jnl
Proc. IEEE
H. Joel Trussell, Vaishali Damle
2016 J jnl
Proc. IEEE
H. Joel Trussell, Sankar Basu
2015 J jnl
Proc. IEEE
H. Joel Trussell
2015 J jnl
IEEE Signal Process. Mag.
H. Joel Trussell, Dror Baron
2015 J jnl
Proc. IEEE
H. Joel Trussell, Vaishali Damle
2015 J jnl
Proc. IEEE
Yan Xu, Haipeng Fu, Jianguo Ma, H. Joel Trussell
2014 J jnl
Proc. IEEE
H. Joel Trussell, Vaishali Damle
2013 Misc conf
ICASSP
H. Joel Trussell, Michael J. Vrhel
2013 J jnl
Proc. IEEE
H. Joel Trussell, Vaishali Damle
2013 J jnl
Proc. IEEE
H. Joel Trussell
2012 B conf
ICIP
H. Joel Trussell, R. Zhang
2011 conf
IVMSP
H. Joel Trussell, Juan Lin, Renzo Shamey
2010 B conf
ICIP
H. Joel Trussell, Jayakumar Nanjappan
2010 J jnl
IEEE Trans. Knowl. Data Eng.
Huiwen Zeng, H. Joel Trussell
2008 J jnl
IEEE Trans. Ind. Electron.
Bulent Ayhan, H. Joel Trussell, Mo-Yuen Chow, Myung-Hyun Song
2008 B conf
ICIP
Michael J. Vrhel, H. Joel Trussell
2007 conf
ICASSP (3)
H. Joel Trussell, Michael J. Vrhel
2006 B conf
ICIP
Huiwen Zeng, H. Joel Trussell
2006 B conf
ICIP
Huiwen Zeng, H. Joel Trussell
2005 conf
EUSIPCO
H. Joel Trussell, Arne A. Nilsson, Parita M. Patel, Yi Wang
2005 J jnl
IEEE Signal Process. Mag.
Michael J. Vrhel, Eli Saber, H. Joel Trussell
2005 J jnl
IEEE Signal Process. Mag.
H. Joel Trussell, Eli Saber, Michael J. Vrhel
2005 conf
ICIP (2)
David M. Rouse, H. Joel Trussell
2005 conf
EUSIPCO
H. Joel Trussell, David M. Rouse
2005 conf
EUSIPCO
Derek H. Justice, H. Joel Trussell, Mette S. Olufsen
2004 B conf
ICIP
David M. Rouse, H. Joel Trussell
2004 B conf
ICIP
Huiwen Zeng, H. Joel Trussell
2004 conf
ICASSP (2)
David M. Rouse, H. Joel Trussell
2003 conf
ICIP (1)
H. Joel Trussell, Huiwen Zeng, Michael J. Vrhel
2003 conf
ICASSP (6)
Derek H. Justice, H. Joel Trussell, Robert E. Hartwig
2002 conf
ICIP (1)
Michael J. Vrhel, H. Joel Trussell
2002 J jnl
IEEE Trans. Image Process.
H. Joel Trussell, Robert E. Hartwig
2002 J jnl
IEEE Trans. Image Process.
Michael J. Vrhel, H. Joel Trussell
2001 conf
ICIP (3)
H. Joel Trussell
2001 J jnl
IEEE Trans. Image Process.
Hayriye Altunbasak, H. Joel Trussell
2001 J jnl
CoRR
Gaurav Sharma, H. Joel Trussell
2000 Misc conf
ICASSP
H. Joel Trussell, Michael J. Vrhel
2000 B conf
ICIP
Michael J. Vrhel, H. Joel Trussell
1999 J jnl
IEEE Trans. Neural Networks
Sinan Altug, H. Joel Trussell, Mo-Yuen Chow
1999 J jnl
IEEE Trans. Image Process.
Michael J. Vrhel, H. Joel Trussell
1999 J jnl
IEEE Trans. Ind. Electron.
Sinan Altug, Mo-Yuen Chen, H. Joel Trussell
1999 J jnl
IEEE Trans. Fuzzy Syst.
Mo-Yuen Chow, Sinan Altug, H. Joel Trussell
1999 J jnl
IEEE Trans. Fuzzy Syst.
Sinan Altug, Mo-Yuen Chow, H. Joel Trussell
1999 conf
NSIP
H. Joel Trussell, Michael J. Vrhel
1998 J jnl
Proc. IEEE
Gaurav Sharma, Michael J. Vrhel, H. Joel Trussell
1998 conf
ICIP (1)
H. Celebi, H. Joel Trussell
1998 J jnl
IEEE Trans. Image Process.
Gaurav Sharma, H. Joel Trussell, Michael J. Vrhel
1998 conf
ICIP (1)
Michael J. Vrhel, H. Joel Trussell
1997 conf
CIC
H. Joel Trussell, Michael J. Vrhel
1997 J jnl
IEEE Trans. Image Process.
Gaurav Sharma, H. Joel Trussell
1997 J jnl
IEEE Trans. Image Process.
Gaurav Sharma, H. Joel Trussell
1997 J jnl
IEEE Trans. Image Process.
Poorvi L. Vora, H. Joel Trussell
1997 J jnl
IEEE Trans. Image Process.
Poorvi L. Vora, H. Joel Trussell
1997 J jnl
IEEE Trans. Image Process.
Gaurav Sharma, H. Joel Trussell
1997 conf
ICIP (3)
H. Joel Trussell, Michael J. Vrhel
1996 conf
Color Imaging: Device-Independent Color, Color Hard Copy, and Graphic Arts
Gaurav Sharma, H. Joel Trussell
1996 conf
CIC
Gaurav Sharma, H. Joel Trussell
1996 conf
ICIP (3)
Gaurav Sharma, H. Joel Trussell
1996 J jnl
IEEE Trans. Image Process.
H. Joel Trussell, Manish S. Kulkarni
1996 J jnl
J. Electronic Imaging
Gaurav Sharma, H. Joel Trussell
1995 Misc conf
ICASSP
H. Joel Trussell, Sarah A. Rajala
1995 conf
CIC
Paul Chen, H. Joel Trussell
1995 J jnl
J. Electronic Imaging
Michael J. Vrhel, H. Joel Trussell, Jack Bosch
1995 conf
Device-Independent Color Imaging
Poorvi L. Vora, H. Joel Trussell, Lawrence S. Iwan
1995 B conf
ICIP
G. L. Grard, H. Joel Trussell
1995 J jnl
IEEE Trans. Image Process.
Michael J. Vrhel, H. Joel Trussell
1994 conf
CIC
H. Joel Trussell
1994 conf
ICIP (2)
Gaurav Sharma, H. Joel Trussell
1994 conf
ICIP (3)
H. Joel Trussell, Manish S. Kulkarni
1994 J jnl
IEEE Trans. Image Process.
Michael J. Vrhel, H. Joel Trussell
1994 conf
ICIP (2)
H. Joel Trussell
1994 conf
Device-Independent Color Imaging
H. Joel Trussell, Gaurav Sharma
1994 conf
Device-Independent Color Imaging
Sarah A. Rajala, H. Joel Trussell, Atish P. Kakodkar
1993 J jnl
IEEE Trans. Image Process.
Andreas E. Savakis, H. Joel Trussell
1993 conf
CIC
Gaurav Sharma, H. Joel Trussell
1993 J jnl
IEEE Signal Process. Mag.
H. Joel Trussell
1993 conf
ICASSP (1)
Brian L. Evans, James H. McClellan, H. Joel Trussell
1993 J jnl
IEEE Trans. Image Process.
Andreas E. Savakis, H. Joel Trussell
1993 conf
Device-Independent Color Imaging and Imaging Systems Integration
Michael J. Vrhel, H. Joel Trussell
1992 J jnl
IEEE Trans. Signal Process.
Patrick L. Combettes, H. Joel Trussell
1992 J jnl
IEEE Trans. Image Process.
H. Joel Trussell, Sergei Fogel
1992 Misc conf
ICASSP
H. Joel Trussell, Poorvi L. Vora
1991 Misc conf
ICASSP
H. Joel Trussell, Andreas E. Savakis
1991 J jnl
CVGIP Graph. Model. Image Process.
A. Murat Tekalp, H. Joel Trussell
1991 Misc conf
ICASSP
H. Joel Trussell, Michael J. Vrhel
1991 J jnl
IEEE Trans. Signal Process.
M. Ibrahim Sezan, H. Joel Trussell
1991 J jnl
IEEE Trans. Signal Process.
H. Joel Trussell, M. Ibrahim Sezan, Duong Tran
1991 J jnl
IEEE Trans. Signal Process.
Patrick L. Combettes, H. Joel Trussell
1991 J jnl
IEEE Trans. Signal Process.
Patrick L. Combettes, H. Joel Trussell
1990 Misc conf
ICASSP
Patrick L. Combettes, H. Joel Trussell
1990 Misc conf
ICASSP
M. Ibrahim Sezan, H. Joel Trussell
1990 J jnl
IEEE Trans. Acoust. Speech Signal Process.
M. Cookey, H. Joel Trussell, I. J. Won
1989 Misc conf
ICASSP
Patrick L. Combettes, H. Joel Trussell
1989 Misc conf
ICASSP
M. Ibrahim Sezan, H. Joel Trussell
1988 J jnl
IEEE Trans. Commun.
Jin-Der Wang, H. Joel Trussell
1988 Misc conf
ICASSP
H. Joel Trussell, Poorvi L. Vora
1988 Misc conf
ICASSP
A. Murat Tekalp, H. Joel Trussell
1988 Misc conf
ICASSP
Patrick L. Combettes, H. Joel Trussell
1987 Misc conf
ICASSP
H. Joel Trussell, Patrick L. Combettes
1987 Misc conf
ICASSP
H. Joel Trussell, M. Reha Civanlar
1987 Misc conf
ICASSP
H. Joel Trussell, Hatice Örün Öztürk, M. Reha Civanlar
1986 Misc conf
ICASSP
Jin-Der Wang, H. Joel Trussell
1986 Misc conf
ICASSP
M. Reha Civanlar, H. Joel Trussell
1985 Misc conf
ICASSP
H. Joel Trussell, M. Reha Civanlar
1985 Misc conf
ICASSP
M. Reha Civanlar, H. Joel Trussell
1985 J jnl
IEEE Trans. Acoust. Speech Signal Process.
H. Joel Trussell, M. Reha Civanlar
1984 Misc conf
ICASSP
H. Joel Trussell, M. Reha Civanlar
1983 Misc conf
ICASSP
H. Joel Trussell, M. Reha Civanlar
1981 Misc conf
ICASSP
H. Joel Trussell, L. A. Schwalbe
1979 J jnl
IEEE Trans. Syst. Man Cybern.
H. Joel Trussell
1979 J jnl
IEEE Trans. Computers
H. Joel Trussell, Bobby R. Hunt
1978 Misc conf
ICASSP
H. Joel Trussell, Bobby R. Hunt
1976 Misc conf
ICASSP
Bobby R. Hunt, H. Joel Trussell
redb/extractors/js_extractors/js_strings.py
← Index redb/extractors/js_extractors/js_strings.py python
import base64
import bisect
import inspect
import re
from datetime import datetime, timezone
from typing import Any

from redb.extractors.enum import Tag
from redb.extractors.js_extractor import JSExtractor
from redb.extractors.js_extractors.js_patterns import STRING_PATTERNS, line_offsets

# Local aliases for the compiled patterns this extractor uses. Defined and
# compiled exactly once in js_patterns.STRING_PATTERNS.
_HEX_STRING_RE = STRING_PATTERNS["hex_escape_seq"]
_UNICODE_STRING_RE = STRING_PATTERNS["unicode_escape_seq"]
_CHARCODE_RE = STRING_PATTERNS["charcode_call"]
_BASE64_STRING_RE = STRING_PATTERNS["base64_quoted"]
_CONCAT_STRING_RE = STRING_PATTERNS["concat_chain"]

# Tokeniser used inside _reconstruct_concat to pull each quoted part out of a
# matched concat chain. Compiled once at module load (was recompiled on every
# concat match before).
_CONCAT_TOKEN_RE = re.compile(r'["\']([^"\']*)["\']')


class JSStringsExtractor(JSExtractor):

    def __init__(
        self, filepath, log, exporters=None, index_prefix=None,
        known_benign=False, known_malicious=False, source=None, context=None,
    ):
        super().__init__(
            filepath, log, exporters, index_prefix,
            known_benign, known_malicious, source, context=context,
        )
        self.string_findings = None
        self.log.debug(inspect.currentframe().f_code.co_name)

    def tag(self):
        return Tag.JS_STRINGS.value

    def _decode_hex_string(self, hex_str):
        """Decode \\x41\\x42 style hex strings."""
        try:
            # Remove \\x prefix and decode
            clean = hex_str.replace('\\x', '')
            return bytes.fromhex(clean).decode('utf-8', errors='replace')
        except Exception:
            return None

    def _decode_unicode_string(self, uni_str):
        """Decode \\u0041\\u0042 style unicode strings."""
        try:
            return uni_str.encode('utf-8').decode('unicode_escape')
        except Exception:
            return None

    def _decode_charcode(self, charcode_str):
        """Decode String.fromCharCode(72, 101, 108, ...) sequences."""
        try:
            codes = [int(c.strip()) for c in charcode_str.split(',') if c.strip().isdigit()]
            return ''.join(chr(c) for c in codes if 0 <= c <= 0x10FFFF)
        except Exception:
            return None

    def _decode_base64(self, b64_str):
        """Attempt to decode base64 string."""
        try:
            decoded = base64.b64decode(b64_str)
            # Check if result is printable text
            text = decoded.decode('utf-8', errors='strict')
            # Only return if it looks like text (>80% printable)
            printable = sum(1 for c in text if c.isprintable() or c in '\n\r\t')
            if printable / len(text) > 0.8:
                return text
        except Exception:
            pass
        return None

    def _reconstruct_concat(self, concat_match):
        """Reconstruct concatenated string parts."""
        try:
            parts = _CONCAT_TOKEN_RE.findall(concat_match)
            return ''.join(parts)
        except Exception:
            return None

    def _find_line_number(self, match_start):
        """1-indexed line number for `match_start`, looked up in O(log L) via
        bisect over `self._line_offsets` (built once per extract() call).

        Replaces the historical `self.js_source[:match_start].count('\\n') + 1`
        which was O(N) per call and quadratic across all matches in a sample.
        """
        return bisect.bisect_right(self._line_offsets, match_start)

    def _scan_text(self, text):
        """Run every encoded-string pattern over `text` and return a list of
        finding dicts. Stateless apart from the per-call `_line_offsets` cache,
        which `_find_line_number` reads — callers must reset it before invoking
        this so line numbers reference the text being scanned, not the previous
        one.
        """
        findings = []

        # Hex-encoded strings
        for m in _HEX_STRING_RE.finditer(text):
            raw = m.group()
            decoded = self._decode_hex_string(raw)
            if decoded and len(decoded) >= 4:
                findings.append({
                    'string': decoded[:4000],
                    'string_raw': raw[:4000],
                    'string_encoding': 'hex',
                    'string_offset': self._find_line_number(m.start()),
                    'string_length': len(decoded),
                    'string_raw_length': len(raw),
                    'string_entropy': self._calculate_text_entropy(decoded),
                })

        # Unicode-encoded strings
        for m in _UNICODE_STRING_RE.finditer(text):
            raw = m.group()
            decoded = self._decode_unicode_string(raw)
            if decoded and len(decoded) >= 3:
                findings.append({
                    'string': decoded[:4000],
                    'string_raw': raw[:4000],
                    'string_encoding': 'unicode',
                    'string_offset': self._find_line_number(m.start()),
                    'string_length': len(decoded),
                    'string_raw_length': len(raw),
                    'string_entropy': self._calculate_text_entropy(decoded),
                })

        # String.fromCharCode sequences
        for m in _CHARCODE_RE.finditer(text):
            raw = m.group()
            decoded = self._decode_charcode(m.group(1))
            if decoded and len(decoded) >= 4:
                findings.append({
                    'string': decoded[:4000],
                    'string_raw': raw[:4000],
                    'string_encoding': 'charcode',
                    'string_offset': self._find_line_number(m.start()),
                    'string_length': len(decoded),
                    'string_raw_length': len(raw),
                    'string_entropy': self._calculate_text_entropy(decoded),
                })

        # Base64-encoded strings
        for m in _BASE64_STRING_RE.finditer(text):
            raw = m.group(0)
            b64_val = m.group(1)
            decoded = self._decode_base64(b64_val)
            if decoded and len(decoded) >= 10:
                findings.append({
                    'string': decoded[:4000],
                    'string_raw': raw[:4000],
                    'string_encoding': 'base64',
                    'string_offset': self._find_line_number(m.start()),
                    'string_length': len(decoded),
                    'string_raw_length': len(raw),
                    'string_entropy': self._calculate_text_entropy(decoded),
                })

        # Concatenated strings (reassembled)
        for m in _CONCAT_STRING_RE.finditer(text):
            raw = m.group()
            reconstructed = self._reconstruct_concat(raw)
            if reconstructed and len(reconstructed) >= 20:
                findings.append({
                    'string': reconstructed[:4000],
                    'string_raw': raw[:4000],
                    'string_encoding': 'concat',
                    'string_offset': self._find_line_number(m.start()),
                    'string_length': len(reconstructed),
                    'string_raw_length': len(raw),
                    'string_entropy': self._calculate_text_entropy(reconstructed),
                })

        return findings

    def extract(self):
        src = self.js_source
        if not src:
            return None

        # Pass 1: raw source. _line_offsets is keyed off whichever text is
        # currently being scanned so _find_line_number resolves to that text.
        self._line_offsets = line_offsets(src)
        findings = self._scan_text(src)

        # Pass 2: deobfuscated text, when the deobfuscator produced something
        # meaningfully different. Same patterns, but a different surface — for
        # samples where the encoded payload is hidden behind an outer wrapper
        # (e.g. array.join() + eval in Vjw0rm/WSH-RAT) only this pass yields
        # any rows at all.
        deobf_text, _ = self._context.deobfuscated
        if deobf_text and deobf_text != src:
            self._line_offsets = line_offsets(deobf_text)
            findings.extend(self._scan_text(deobf_text))

        if not findings:
            return None

        # Deduplicate by decoded string value (raw pass wins on collision: it
        # comes first in `findings`). A string that surfaces only in the
        # deobfuscated text still gets persisted, which is the whole point of
        # the second pass.
        seen_values = set()
        deduped = []
        for f in findings:
            val_key = f['string'][:100]
            if val_key not in seen_values:
                seen_values.add(val_key)
                deduped.append(f)

        self.string_findings = deduped[:500]  # Limit per file
        # Publish to the shared context so post-loop consumers (notably the IOC
        # plumbing in workers.py) can scrape the decoded strings without
        # holding a reference to this extractor instance.
        self._context.decoded_strings = self.string_findings
        return self.string_findings

    def prepare_export_data(self, exporter_type: str) -> Any:
        if exporter_type == "ClickHouseExporter":
            if not self.string_findings:
                return None

            data = []
            for f in self.string_findings:
                data.append([
                    self.sha256,
                    f['string'],
                    f['string_raw'],
                    f['string_encoding'],
                    f['string_offset'],
                    f['string_length'],
                    f['string_raw_length'],
                    f['string_entropy'],
                ])

            column_names = [
                "sha256",
                "string",
                "string_raw",
                "string_encoding",
                "string_offset",
                "string_length",
                "string_raw_length",
                "string_entropy",
            ]

            column_type_names = [
                "FixedString(64)",
                "String",
                "String",
                "LowCardinality(String)",
                "UInt64",
                "UInt32",
                "UInt32",
                "Float32",
            ]

            return (data, column_names, column_type_names)

    def get_clickhouse_table(self) -> str:
        return "code_binja_strings_raw"